@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   GLOBAL STYLES - Cosmic Word Hunter Theme
   ============================================ */

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 50%, #FECDD3 100%);
    transition: background 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #06B6D4 #E0F2FE;
    padding-top: 70px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #06B6D4 0%, #0EA5E9 100%);
    border-radius: 8px;
    border: 3px solid #F0F9FF;
    box-shadow: inset 0 0 6px rgba(6, 182, 212, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0EA5E9 0%, #06B6D4 100%);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Header - Redesigned */
header {
    position: fixed;
    top: 0;
    left: 0;
    padding: 12px 15px;
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 50%, #F472B6 100%);
    box-shadow: 0 6px 30px rgba(6, 182, 212, 0.4), 0 0 20px rgba(6, 182, 212, 0.2);
    backdrop-filter: blur(15px);
    color: white;
    width: 100%;
    z-index: 1001;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
}

.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
    margin: 0 auto;
    max-width: 1050px;
    font-size: 28px;
    font-weight: 900;
    text-decoration: none;
    color: white;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header:hover {
    transform: scale(1.02);
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.header img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.header:hover img {
    transform: rotate(5deg) scale(1.05);
}

.logo-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 12px rgba(6, 182, 212, 0.5)) drop-shadow(0 0 6px rgba(244, 114, 182, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
}

.header:hover .logo-icon {
    filter: drop-shadow(0 6px 18px rgba(6, 182, 212, 0.7)) drop-shadow(0 0 12px rgba(244, 114, 182, 0.5));
    transform: rotate(-3deg) scale(1.08);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

.color-blind-mode .header {
    background-color: transparent;
    color: #ffffff;
}

/* Footer - Redesigned */
.footer {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #1E293B 100%);
    color: #fff;
    padding: 60px 0 25px;
    position: relative;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #06B6D4, #0EA5E9, #F472B6);
    border-image-slice: 1;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(6, 182, 212, 0.03) 35px,
        rgba(6, 182, 212, 0.03) 70px
    );
    opacity: 0.5;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    font-size: 42px;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 15px;
    max-width: 220px;
    background: linear-gradient(135deg, #06B6D4, #0EA5E9, #F472B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.footer-brand p {
    font-size: 19px;
    color: #CBD5E1;
    max-width: 400px;
    text-align: left;
    line-height: 1.7;
}

.footer-brand p a {
    color: #CBD5E1;
    text-decoration: none;
}

.footer-brand p a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-column h4 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 18px;
    color: #fff;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 18px;
}

.footer-column ul li a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: inline-block;
}

.footer-column ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #06B6D4, #F472B6);
    transition: width 0.3s ease;
}

.footer-column ul li a:hover {
    color: #06B6D4;
    padding-left: 8px;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.footer-column ul li a:hover::before {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    border-top: 2px solid rgba(6, 182, 212, 0.2);
    padding-top: 25px;
}

.footer-bottom p {
    font-size: 19px;
    color: #CBD5E1;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(6, 182, 212, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
    transition: left 0.6s ease;
}

.social-icons a:hover::before {
    left: 100%;
}

.social-icons img {
    width: 26px;
    height: 26px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.social-icons a:hover {
    transform: translateY(-8px) scale(1.15) rotate(5deg);
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.5),
                0 0 25px rgba(6, 182, 212, 0.4),
                inset 0 0 20px rgba(6, 182, 212, 0.15);
}

.social-icons a:hover img {
    transform: scale(1.1);
    filter: brightness(1.3) drop-shadow(0 0 20px rgba(6, 182, 212, 0.9));
}

.social-icons a:active {
    transform: translateY(-4px) scale(1.05);
}

.left-footer-img {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.08;
    z-index: 0;
}

.right-footer-img {
    position: absolute;
    right: 0;
    bottom: 0;
    opacity: 0.08;
    z-index: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    header {
        padding: 10px 12px;
    }

    .header {
        font-size: 22px;
        gap: 12px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 25px;
    }

    .footer-brand {
        margin-bottom: 25px;
    }

    .footer-brand h3 {
        max-width: 100%;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .container {
        padding: 8px;
    }

    .social-icons {
        margin-top: 15px;
    }
}

@media screen and (max-width: 320px) {
    .header {
        font-size: 20px;
        gap: 10px;
    }

    .footer-brand h3 {
        font-size: 34px;
    }

    .footer-content {
        gap: 20px;
    }

    .footer-brand p {
        font-size: 17px;
    }

    .footer-column h4 {
        font-size: 20px;
    }

    .footer-column ul li a {
        font-size: 15px;
    }

    .footer-bottom p {
        font-size: 16px;
    }
}
