@import url('themes/default.css');

/* ===================== HOME HEADER (site-specific) ===================== */

.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0 2.5rem;
    gap: 2rem;
}

.home-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -2px;
    text-shadow: 0 0 15px #ff333322, 0 0 40px #ff333311;
}

.home-header h1 .dot {
    color: var(--qd-accent);
    text-shadow: 0 0 10px #ff333388, 0 0 30px #ff333344;
}

.home-header h1 .cursor {
    display: inline-block;
    width: 3px;
    height: 3.2rem;
    background: var(--qd-accent);
    margin-left: 6px;
    vertical-align: middle;
    box-shadow: 0 0 8px #ff333388;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Avatar */

.avatar-wrapper {
    flex-shrink: 0;
}

.avatar-wrapper img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid transparent;
    background-image: linear-gradient(#111, #111), linear-gradient(135deg, #ff3333, #ff6600, #cc33ff, #3366ff, #ff3333);
    background-origin: border-box;
    background-clip: content-box, border-box;
    background-size: 100%, 300% 300%;
    animation: avatarGradient 8s ease-in-out infinite;
    transition: transform 0.4s, box-shadow 0.4s;
}

.avatar-wrapper img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px #ff333344, 0 0 50px #cc33ff22;
}

@keyframes avatarGradient {
    0%, 100% { background-position: center, 0 50%; }
    50% { background-position: center, 100% 50%; }
}

/* Social links */

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: transparent;
    border: 2px solid #fff;
    text-decoration: none;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: none;
}

.social-link:hover {
    background: var(--qd-accent);
    border-color: var(--qd-accent);
    color: #fff;
    box-shadow: 0 0 15px #ff333344;
}

.social-note {
    color: #555;
    font-size: 0.7rem;
    font-style: italic;
}

/* ===================== RESPONSIVE (site-specific) ===================== */

@media (max-width: 768px) {
    .home-header {
        flex-direction: column;
        text-align: center;
    }

    .home-header h1 {
        font-size: 2.8rem;
    }

    .home-header h1 .cursor {
        height: 2.4rem;
    }

    .avatar-wrapper img {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 480px) {
    .home-header h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .home-header h1 .cursor {
        height: 2rem;
    }
}

/* Anchor highlight */

.anchor-highlight.anchor-flash {
    animation: anchor-flash 2s ease;
}

@keyframes anchor-flash {
    0%, 20%, 40% { background: var(--qd-accent); color: var(--qd-bg); border-radius: 3px; padding: 0 4px; }
    10%, 30% { background: transparent; color: inherit; }
    100% { background: transparent; color: inherit; }
}

/* Tables */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

th, td {
    padding: 0.6rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--qd-border);
}

th {
    color: var(--qd-heading);
    font-weight: 700;
    border-bottom: 2px solid var(--qd-accent);
}

tr:hover {
    background: rgba(255, 255, 255, 0.03);
}
