/* ==================== FOOTER STYLES ==================== */
/* File: /static/css/footer.css */
/* Description: Complete footer styles for public and authenticated users */

/* ==================== BASE FOOTER ==================== */
.footer {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b, #ef4444);
}

.footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==================== FOOTER TOP GRID ==================== */
.footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top-auth {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column {
    min-width: 0;
}

.footer-brand-column {
    padding-right: 2rem;
}

/* ==================== FOOTER LOGO ==================== */
.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo-img,
.footer-auth-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo-img:hover,
.footer-auth-logo-img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* ==================== FOOTER DESCRIPTION ==================== */
.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ==================== FOOTER SOCIAL ICONS ==================== */
.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* LinkedIn */
.footer-social a:nth-child(1):hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

/* Twitter/X */
.footer-social a:nth-child(2):hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

/* Facebook */
.footer-social a:nth-child(3):hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

/* Instagram */
.footer-social a:nth-child(4):hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    color: white;
}

/* YouTube */
.footer-social a:nth-child(5):hover {
    background: #ff0000;
    border-color: #ff0000;
    color: white;
}

/* ==================== FOOTER TITLE ==================== */
.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 2px;
}

/* ==================== FOOTER LINKS ==================== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    padding: 4px 0;
}

.footer-links a i {
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(6px);
}

.footer-links a:hover i {
    opacity: 1;
    color: #3b82f6;
}

/* ==================== LEVEL BADGES ==================== */
.footer-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    min-width: 28px;
}

.footer-level-badge.level-1 {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.footer-level-badge.level-2 {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.4);
}

.footer-level-badge.level-3 {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

/* ==================== NEWSLETTER SECTION ==================== */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.newsletter-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.newsletter-text h4 i {
    color: #3b82f6;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.95rem;
}

.newsletter-form {
    flex-shrink: 0;
}

.newsletter-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.newsletter-input-group input {
    background: transparent;
    border: none;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 0.95rem;
    width: 280px;
    outline: none;
}

.newsletter-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-input-group button {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    padding: 14px 24px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.newsletter-input-group button:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.newsletter-input-group button i {
    transition: transform 0.3s ease;
}

.newsletter-input-group button:hover i {
    transform: translateX(4px);
}

/* ==================== FOOTER BOTTOM ==================== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 2rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-legal a i {
    font-size: 0.75rem;
    opacity: 0.6;
}

.footer-legal a:hover {
    color: #ffffff;
}

.footer-legal a:hover i {
    opacity: 1;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.footer-copyright i {
    font-size: 0.8rem;
}

/* ==================== SUBSCRIPTION STATUS CARD ==================== */
.footer-status-column {
    display: flex;
    align-items: flex-start;
}

.footer-subscription-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
}

.subscription-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.subscription-header i {
    color: #3b82f6;
}

.subscription-body {
    padding: 16px;
}

.subscription-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Status Badge */
.status-badge {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.status-badge .status-icon,
.subscription-status .status-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.status-icon.all-levels,
.status-full .status-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.status-icon.partial,
.status-partial .status-icon {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.status-icon.inactive,
.status-inactive .status-icon {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.status-details,
.status-info {
    flex: 1;
}

.status-title,
.status-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.status-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.status-subtitle,
.status-text {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.status-text {
    font-size: 14px;
    color: #cbd5e1;
}

/* Active Levels */
.active-levels,
.active-levels-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.level-tag,
.level-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.level-tag i,
.level-chip i {
    font-size: 0.7rem;
}

.level-tag.associate,
.level-chip.associate {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.level-tag.professional,
.level-chip.professional {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.level-tag.leader,
.level-chip.leader {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Status Action */
.status-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #4ade80;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.status-action:hover {
    background: rgba(16, 185, 129, 0.25);
    transform: translateX(4px);
}

/* Upgrade Prompt */
.upgrade-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.upgrade-prompt:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.upgrade-prompt.highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2));
    border-color: rgba(16, 185, 129, 0.3);
    color: #4ade80;
}

.upgrade-prompt.highlight:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(59, 130, 246, 0.3));
}

.upgrade-prompt i:first-child {
    font-size: 0.9rem;
}

.upgrade-prompt i:last-child {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ==================== SPECIAL LINKS ==================== */
/* CTA Link */
.footer-cta-link,
.highlight-link {
    color: #4ade80 !important;
    font-weight: 600;
}

.footer-cta-link:hover,
.highlight-link:hover {
    color: #86efac !important;
}

.footer-cta-link i,
.highlight-link i {
    color: #4ade80 !important;
}

/* Logout Link */
.footer-logout-link {
    color: rgba(239, 68, 68, 0.8) !important;
}

.footer-logout-link:hover {
    color: #ef4444 !important;
}

.footer-logout-link i {
    color: rgba(239, 68, 68, 0.8) !important;
}

/* ==================== RESPONSIVE - LARGE SCREENS ==================== */
@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-top-auth {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
    }

    .footer-column:last-child {
        grid-column: span 1;
    }

    .footer-status-column {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ==================== RESPONSIVE - TABLETS ==================== */
@media (max-width: 992px) {
    .footer {
        padding: 4rem 0 2rem;
    }

    .footer-top,
    .footer-top-auth {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand-column {
        grid-column: span 2;
        padding-right: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand-column .footer-description {
        max-width: 500px;
    }

    .footer-brand-column .footer-social {
        justify-content: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-column {
        text-align: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-status-column {
        grid-column: span 2;
        justify-content: center;
    }

    .footer-subscription-card {
        max-width: 400px;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-text {
        text-align: center;
    }

    .newsletter-text h4 {
        justify-content: center;
    }

    .footer-logo-img,
    .footer-auth-logo-img {
        height: 70px;
    }
}

/* ==================== RESPONSIVE - SMALL TABLETS ==================== */
@media (max-width: 768px) {
    .footer-top,
    .footer-top-auth {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand-column {
        grid-column: span 2;
    }

    .newsletter-input-group {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
    }

    .newsletter-input-group input {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .newsletter-input-group button {
        justify-content: center;
        padding: 14px;
    }

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

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

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

/* ==================== RESPONSIVE - MOBILE ==================== */
@media (max-width: 576px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-top,
    .footer-top-auth {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand-column,
    .footer-status-column {
        grid-column: span 1;
    }

    .footer-subscription-card {
        max-width: 100%;
    }

    .footer-logo-img,
    .footer-auth-logo-img {
        height: 60px;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-newsletter {
        padding: 1.5rem;
    }

    .newsletter-text h4 {
        font-size: 1.1rem;
    }

    .newsletter-text p {
        font-size: 0.9rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-legal a {
        font-size: 0.85rem;
    }

    .footer-copyright {
        font-size: 0.85rem;
    }

    .status-badge,
    .subscription-status {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .status-details,
    .status-info {
        text-align: center;
    }

    .active-levels,
    .active-levels-list {
        justify-content: center;
    }
}

/* ==================== RESPONSIVE - SMALL MOBILE ==================== */
@media (max-width: 400px) {
    .footer-logo-img,
    .footer-auth-logo-img {
        height: 50px;
    }

    .footer-social a {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .footer-level-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
        min-width: 24px;
    }

    .level-tag,
    .level-chip {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .upgrade-prompt {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .upgrade-prompt i:last-child {
        display: none;
    }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    .footer-social a,
    .footer-links a,
    .footer-legal a,
    .newsletter-input-group,
    .newsletter-input-group button i,
    .upgrade-prompt,
    .status-action,
    .footer-logo-img,
    .footer-auth-logo-img {
        transition: none;
    }

    .footer-social a:hover,
    .footer-links a:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .footer {
        background: #000000;
        border-top: 2px solid #ffffff;
    }

    .footer::before {
        height: 2px;
        background: #ffffff;
    }

    .footer-description,
    .footer-links a,
    .footer-legal a,
    .footer-copyright,
    .status-subtitle,
    .status-text,
    .newsletter-text p {
        color: rgba(255, 255, 255, 0.9);
    }

    .footer-subscription-card,
    .footer-newsletter {
        border-width: 2px;
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .footer {
        background: #ffffff;
        color: #000000;
        padding: 2rem 0;
    }

    .footer::before {
        display: none;
    }

    .footer-social,
    .footer-newsletter,
    .upgrade-prompt,
    .status-action {
        display: none;
    }

    .footer-logo-img,
    .footer-auth-logo-img {
        filter: none;
    }

    .footer-links a,
    .footer-legal a,
    .footer-description,
    .footer-copyright {
        color: #000000;
    }

    .footer-title {
        color: #000000;
    }

    .footer-title::after {
        background: #000000;
    }
}