/**
 * ContentGo Footer Styles
 * Brand-compliant design with 6px grid system
 * Colors: Primary #3B3198, Dark #32257E, White #FFFFFF
 */

/* ============================================
   FOOTER MAIN CONTAINER
   ============================================ */
.cogo-footer {
    background: linear-gradient(180deg, #32257E 0%, #1D1578 100%);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.cogo-footer::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 49, 152, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.cogo-footer::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(48, 239, 192, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================
   FOOTER CONTENT WRAPPER
   ============================================ */
.cogo-footer__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 24px 48px; /* 12×6px top, 4×6px sides, 8×6px bottom */
    position: relative;
    z-index: 1;
}

/* ============================================
   FOOTER TOP - CTA SECTION
   ============================================ */
.cogo-footer__cta {
    text-align: center;
    margin-bottom: 72px; /* 12×6px */
    padding-bottom: 48px; /* 8×6px */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cogo-footer__cta-title {
    font-family: 'degular-display', serif;
    font-size: 36px; /* 6×6px */
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 18px; /* 3×6px */
    color: #FFFFFF;
}

.cogo-footer__cta-text {
    font-family: 'Inter', sans-serif;
    font-size: 18px; /* 3×6px */
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 30px; /* 5×6px */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cogo-footer__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 18px; /* 3×6px */
    flex-wrap: wrap;
}

.cogo-footer__btn {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 66px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cogo-footer__btn--primary {
    background: #FFFFFF;
    color: #32257E;
    border: 2px solid #FFFFFF;
}

.cogo-footer__btn--primary:hover {
    background: transparent;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.cogo-footer__btn--secondary {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.cogo-footer__btn--secondary:hover {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER NAVIGATION GRID
   ============================================ */
.cogo-footer__nav {
    display: grid;
    grid-template-columns: 1.5fr repeat(5, 1fr);
    gap: 48px; /* 8×6px */
    margin-bottom: 48px; /* 8×6px */
}

/* Brand Column */
.cogo-footer__brand {
    padding-right: 24px; /* 4×6px */
}

.cogo-footer__logo {
    margin-bottom: 24px; /* 4×6px */
}

.cogo-footer__logo svg,
.cogo-footer__logo img {
    height: 36px; /* 6×6px */
    width: auto;
}

.cogo-footer__tagline {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 30px; /* 5×6px */
}

/* Social Links */
.cogo-footer__social {
    display: flex;
    gap: 12px; /* 2×6px */
}

.cogo-footer__social-link {
    width: 42px; /* 7×6px */
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cogo-footer__social-link:hover {
    background: #3B3198;
    transform: translateY(-3px);
}

.cogo-footer__social-link svg {
    width: 18px; /* 3×6px */
    height: 18px;
}

/* Navigation Columns */
.cogo-footer__column {}

.cogo-footer__column-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    margin: 0 0 24px; /* 4×6px */
    padding-bottom: 12px; /* 2×6px */
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.cogo-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cogo-footer__links li {
    margin-bottom: 12px; /* 2×6px */
}

.cogo-footer__links a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.cogo-footer__links a:hover {
    color: #FFFFFF;
    transform: translateX(4px);
}

.cogo-footer__links a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #30EFC0;
    transition: width 0.2s ease;
}

.cogo-footer__links a:hover::before {
    width: 6px;
}

/* Badge for special items */
.cogo-footer__badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.cogo-footer__badge--new {
    background: #30EFC0;
    color: #1D1578;
}

.cogo-footer__badge--popular {
    background: #FF7255;
    color: #FFFFFF;
}

/* ============================================
   FOOTER BOTTOM
   ============================================ */
.cogo-footer__bottom {
    padding-top: 24px; /* 4×6px */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px; /* 3×6px */
}

.cogo-footer__copyright {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.cogo-footer__legal {
    display: flex;
    gap: 24px; /* 4×6px */
    list-style: none;
    margin: 0;
    padding: 0;
}

.cogo-footer__legal a {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cogo-footer__legal a:hover {
    color: #FFFFFF;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .cogo-footer__nav {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px 24px; /* 6×6px, 4×6px */
    }
    
    .cogo-footer__brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-right: 0;
        margin-bottom: 24px;
    }
    
    .cogo-footer__social {
        justify-content: center;
    }
    
    .cogo-footer__cta-title {
        font-size: 30px; /* 5×6px */
    }
}

/* Mobile */
@media (max-width: 768px) {
    .cogo-footer__content {
        padding: 48px 18px 36px; /* 8×6px, 3×6px, 6×6px */
    }
    
    .cogo-footer__cta {
        margin-bottom: 48px;
        padding-bottom: 36px;
    }
    
    .cogo-footer__cta-title {
        font-size: 24px; /* 4×6px */
    }
    
    .cogo-footer__cta-text {
        font-size: 14px;
    }
    
    .cogo-footer__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cogo-footer__btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .cogo-footer__nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 18px;
    }
    
    .cogo-footer__brand {
        grid-column: 1 / -1;
    }
    
    .cogo-footer__column-title {
        font-size: 12px;
        margin-bottom: 18px;
    }
    
    .cogo-footer__links a {
        font-size: 13px;
    }
    
    .cogo-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .cogo-footer__legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .cogo-footer__nav {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cogo-footer__column {
        text-align: center;
    }
    
    .cogo-footer__links a::before {
        display: none;
    }
    
    .cogo-footer__links a:hover {
        transform: none;
    }
}

/* ============================================
   ACCORDION FOR MOBILE (Optional Enhancement)
   ============================================ */
@media (max-width: 480px) {
    .cogo-footer__column--accordion .cogo-footer__column-title {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .cogo-footer__column--accordion .cogo-footer__column-title::after {
        content: '+';
        font-size: 18px;
        font-weight: 400;
        transition: transform 0.3s ease;
    }
    
    .cogo-footer__column--accordion.is-open .cogo-footer__column-title::after {
        transform: rotate(45deg);
    }
    
    .cogo-footer__column--accordion .cogo-footer__links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .cogo-footer__column--accordion.is-open .cogo-footer__links {
        max-height: 500px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cogo-footer__nav > * {
    animation: fadeInUp 0.6s ease forwards;
}

.cogo-footer__nav > *:nth-child(1) { animation-delay: 0.1s; }
.cogo-footer__nav > *:nth-child(2) { animation-delay: 0.15s; }
.cogo-footer__nav > *:nth-child(3) { animation-delay: 0.2s; }
.cogo-footer__nav > *:nth-child(4) { animation-delay: 0.25s; }
.cogo-footer__nav > *:nth-child(5) { animation-delay: 0.3s; }
.cogo-footer__nav > *:nth-child(6) { animation-delay: 0.35s; }
