/* ================================================
   🦘 KOALA THEMED STYLE.CSS - FIXED & UPDATED
   No more mojibake • No sticky highlights • Cozy koala look
   ================================================ */

:root {
    --primary-color: #132B24;
    --secondary-color: #7ED4B0;
    --accent-color: #FF9E85;
    --text-color: #E8F4EF;
    --background-color: #0F211C;
    --card-background: rgba(28, 48, 42, 0.96);
    --button-hover: rgba(126, 212, 176, 0.22);
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--background-color);
    color: var(--text-color);
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(126, 212, 176, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(126, 212, 176, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: var(--secondary-color);
    margin: 35px 0 25px 0;
    font-size: 3em;
    font-weight: 700;
    letter-spacing: -2px;
    text-shadow: 0 6px 20px rgba(126, 212, 176, 0.3);
}

.search-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    padding: 32px;
    background: var(--card-background);
    border-radius: 28px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25),
                0 0 0 2px rgba(126, 212, 176, 0.18);
}

.domain-input-group {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    max-width: 820px;
}

h2 {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    font-size: 1.45em;
}

#target {
    flex: 1;
    padding: 16px 22px;
    font-size: 17px;
    background: rgba(255, 255, 255, 0.09);
    border: 3px solid rgba(126, 212, 176, 0.3);
    color: var(--text-color);
    border-radius: 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#target:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 6px rgba(126, 212, 176, 0.3);
    transform: scale(1.03);
}

.futuristic-button {
    padding: 16px 26px;
    font-size: 14.8px;
    background: transparent;
    border: 3px solid rgba(126, 212, 176, 0.4);
    color: var(--text-color);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: left;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.futuristic-button:hover {
    background: var(--button-hover);
    transform: translateY(-5px) scale(1.04);
    border-color: var(--secondary-color);
    box-shadow: 0 14px 28px rgba(126, 212, 176, 0.35);
}

.futuristic-button:active {
    transform: scale(0.96);
    background: rgba(126, 212, 176, 0.3);
}

.reset-button {
    background: var(--accent-color) !important;
    padding: 16px 32px !important;
    white-space: nowrap;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(255, 158, 133, 0.35);
    transition: all 0.3s ease;
}

.reset-button:hover {
    background: #ff7f6b !important;
    transform: translateY(-4px) scale(1.05);
}

.api-key-button {
    position: fixed;
    top: 25px;
    right: 25px;
    padding: 13px 28px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 700;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(126, 212, 176, 0.45);
    display: flex;
    align-items: center;
    gap: 9px;
}

.api-key-button:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 14px 30px rgba(126, 212, 176, 0.55);
}

.category-container {
    background: var(--card-background);
    padding: 32px;
    border-radius: 28px;
    margin-bottom: 38px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(126, 212, 176, 0.2);
}

.category-title {
    color: var(--secondary-color);
    font-size: 1.65em;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 4px solid var(--secondary-color);
    font-weight: 700;
    letter-spacing: 0.8px;
}

.button-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 18px;
}

.api-status {
    position: fixed;
    top: 78px;
    right: 28px;
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    z-index: 1000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.api-status.active {
    background: rgba(126, 212, 176, 0.25);
    color: var(--secondary-color);
    border: 3px solid var(--secondary-color);
}

.api-status.inactive {
    background: rgba(255, 158, 133, 0.25);
    color: var(--accent-color);
    border: 3px solid var(--accent-color);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 33, 28, 0.9);
    z-index: 1001;
    backdrop-filter: blur(8px);
}

.modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-background);
    padding: 40px;
    border-radius: 28px;
    width: 90%;
    max-width: 540px;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.4);
    border: 4px solid var(--secondary-color);
}

.modal input {
    width: 100%;
    padding: 16px 22px;
    margin: 14px 0 24px 0;
    background: rgba(255, 255, 255, 0.09);
    border: 3px solid rgba(126, 212, 176, 0.3);
    color: var(--text-color);
    border-radius: 18px;
    font-size: 15.5px;
}

.modal input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 5px rgba(126, 212, 176, 0.3);
}

.search-results {
    background: var(--card-background);
    border-radius: 28px;
    padding: 28px;
    margin-top: 25px;
    border: 3px solid rgba(126, 212, 176, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.footer {
    margin-top: 70px;
    padding: 30px;
    background: var(--card-background);
    border-radius: 28px;
    text-align: center;
    border-top: 5px solid var(--secondary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.footer p {
    margin: 0;
    color: var(--text-color);
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .search-section { flex-direction: column; padding: 24px; }
    .domain-input-group { flex-direction: column; width: 100%; }
    #target { width: 100%; }
    h1 { font-size: 2.4em; }
    .futuristic-button { text-align: center; }
}