/* ========================================
   Footer V2 Styles - Phase 0.2
   6-Column Layout with Better Organization
   ======================================== */

.footer-v2 {
    background: var(--footer-bg, #1f2937);
    color: var(--footer-text, #d1d5db);
    padding: 64px 0 0;
    margin-top: 64px;
}

[data-theme="dark"] .footer-v2 {
    --footer-bg: #111827;
    --footer-text: #9ca3af;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Footer Main - 6 Column Layout
   ======================================== */
.footer-main {
    display: grid;
    grid-template-columns: 2fr repeat(5, 1fr);
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--footer-border, rgba(255, 255, 255, 0.1));
}

/* Brand Column (Column 1 - Wider) */
.brand-column {
    grid-column: span 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-icon {
    font-size: 32px;
    line-height: 1;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--footer-logo-text, #ffffff);
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--footer-text-secondary, #9ca3af);
    margin: 0 0 24px 0;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--social-bg, rgba(255, 255, 255, 0.1));
    color: var(--footer-text, #d1d5db);
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color, #2563eb);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Footer Columns (2-6) */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--footer-heading, #ffffff);
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li a {
    font-size: 14px;
    color: var(--footer-link, #9ca3af);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--primary-color, #2563eb);
    transform: translateX(4px);
}

.footer-divider-item {
    margin: 8px 0 !important;
    opacity: 0.6;
}

.footer-divider-line {
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--footer-link, #9ca3af), transparent);
    margin: 4px 0;
}

/* ========================================
   Footer Badges
   ======================================== */
.footer-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--footer-border, rgba(255, 255, 255, 0.1));
}

.footer-badge {
    display: flex;
    align-items: center;
    transition: all 0.3s;
    opacity: 0.8;
}

.footer-badge:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.indie-deals-badge {
    position: relative;
    overflow: hidden;
}

.indie-deals-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%) rotate(45deg);
    pointer-events: none;
    transition: transform 0.3s ease-out;
}

.indie-deals-badge:hover::after {
    animation: indie-deals-shine 1s ease-out;
}

@keyframes indie-deals-shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(0%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* ========================================
   Footer Bottom
   ======================================== */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.footer-copyright {
    font-size: 14px;
    color: var(--footer-text-secondary, #6b7280);
}

.footer-copyright p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: var(--footer-link, #9ca3af);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: var(--primary-color, #2563eb);
}

.footer-divider {
    color: var(--footer-text-tertiary, #4b5563);
    user-select: none;
}

/* ========================================
   Responsive Design - Laptop
   ======================================== */
@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: 1.5fr repeat(5, 1fr);
        gap: 32px;
    }
    
    .brand-column {
        grid-column: span 2;
    }
}

/* ========================================
   Responsive Design - Tablet
   ======================================== */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .brand-column {
        grid-column: span 3;
        max-width: none;
    }
    
    .footer-description {
        max-width: 600px;
    }
}

/* ========================================
   Responsive Design - Mobile
   ======================================== */
@media (max-width: 768px) {
    .footer-v2 {
        padding: 48px 0 0;
        margin-top: 48px;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        padding-bottom: 32px;
    }
    
    .brand-column {
        grid-column: span 2;
    }
    
    .footer-column {
        grid-column: span 1;
    }
    
    .footer-badges {
        flex-direction: column;
        gap: 16px;
        padding: 24px 0;
    }
    
    .footer-badge img,
    .footer-badge svg {
        max-width: 100px;
        height: auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px 0;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .brand-column,
    .footer-column {
        grid-column: span 1;
    }
    
    .footer-logo-text {
        font-size: 18px;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .footer-v2 {
        background: #ffffff;
        color: #000000;
        margin-top: 32px;
        padding: 32px 0;
    }
    
    .footer-badges,
    .footer-social {
        display: none;
    }
    
    .footer-main {
        border-bottom: 1px solid #000000;
    }
    
    .footer-bottom {
        border-top: none;
    }
}

/* ========================================
   Accessibility
   ======================================== */
.footer-links li a:focus,
.social-link:focus,
.footer-badge:focus {
    outline: 2px solid var(--primary-color, #2563eb);
    outline-offset: 2px;
}

/* ========================================
   Dark Theme Support
   ======================================== */
[data-theme="dark"] .footer-v2 {
    border-top: 1px solid #374151;
}

[data-theme="dark"] .footer-logo-text {
    color: #f3f4f6;
}

[data-theme="dark"] .footer-column-title {
    color: #f3f4f6;
}

[data-theme="dark"] .social-link {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .social-link:hover {
    background: var(--primary-color, #2563eb);
}

[data-theme="dark"] .footer-links li a:hover {
    color: #60a5fa;
}

[data-theme="dark"] .footer-bottom-links a:hover {
    color: #60a5fa;
}
