/**
 * ByMrKali4K17Club - Footer Styles
 * File: /assets/css/footer.css
 *
 * Developer: Mr. Kali @ Power Expert
 * Version: 1.2.0
 *   - New .footer-membership CTA column styles
 *   - WhatsApp link style
 *   - /event → /veranstaltungen (no CSS change, just noted)
 */

/* ==========================================
   GLOBAL RESET
   ========================================== */
/* ==========================================
   FOOTER MAIN STRUCTURE
   ========================================== */

.k17-footer {
    background: linear-gradient(to bottom, rgba(5,5,5,0.98) 0%, #000 100%);
    color: var(--text-main);
    position: relative;
    margin-top: 0;
}

.k17-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.k17-footer-main {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--border);
}

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

.k17-footer-main .k17-footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
    gap: 60px;
}

/* ==========================================
   FOOTER COLUMNS
   ========================================== */

.k17-footer-col {
    display: flex;
    flex-direction: column;
}

/* ==========================================
   FOOTER LOGO & ABOUT
   ========================================== */

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

.footer-logo-k17 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.footer-logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-main);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.footer-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 300px;
}

/* ==========================================
   SOCIAL MEDIA ICONS
   ========================================== */

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

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

/* ==========================================
   FOOTER HEADINGS
   ========================================== */

.footer-heading {
    font-family: 'Roboto Slab', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* ==========================================
   FOOTER NAVIGATION MENUS
   ========================================== */

.footer-nav {
    flex-grow: 1;
}

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

.footer-menu li {
    margin: 0;
    padding: 0;
}

.footer-menu a {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-menu a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: var(--transition);
    color: var(--gold);
}

.footer-menu a:hover {
    color: var(--gold);
    padding-left: 20px;
}

.footer-menu a:hover::before {
    opacity: 1;
    left: 0;
}

/* ==========================================
   MEMBERSHIP CTA COLUMN (Col 3 - NEW)
   ========================================== */

.footer-membership-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Gold CTA button */
.footer-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    margin-bottom: 28px;
    transition: var(--transition);
    text-align: center;
    letter-spacing: 0.5px;
}

.footer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
    color: #000;
}

/* Login + Dashboard links below the CTA button */
.footer-membership-links {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 0;
}

/* ==========================================
   CONTACT INFORMATION
   ========================================== */

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-decoration: none;
    transition: var(--transition);
}

a.contact-text:hover {
    color: var(--gold);
}

/* ==========================================
   NEWSLETTER SIGNUP
   ========================================== */

.footer-newsletter {
    margin-top: 8px;
}

.newsletter-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex-grow: 1;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.newsletter-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    border: none;
    border-radius: 8px;
    color: var(--bg-darker);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* ==========================================
   FOOTER BOTTOM BAR
   ========================================== */

.k17-footer-bottom {
    padding: 32px 0;
    background: rgba(0,0,0,0.8);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer-copyright p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-legal {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.legal-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}

.legal-menu li {
    margin: 0;
    padding: 0;
}

.legal-menu a {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.legal-menu a:hover {
    color: var(--gold);
}

/* ==========================================
   POWEREXPERT BADGE (Footer Credit) v2.0
   ========================================== */

.footer-credit {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Outer link — the whole badge is clickable */
.pe-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 14px 20px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 6px;                          /* FIX: sharper, more premium */
    background: rgba(10, 10, 10, 0.85);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle gold shimmer line at top */
.pe-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.5), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Left accent bar */
.pe-badge::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.pe-badge:hover {
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(15, 12, 5, 0.95);
    transform: translateY(-3px);
    box-shadow:
        0 8px 28px rgba(212, 175, 55, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.6);
}

.pe-badge:hover::before,
.pe-badge:hover::after {
    opacity: 1;
}

/* ── Logo image ── */
.pe-badge-logo {
    width: 38px;                                 /* FIX: slightly larger */
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
    /* White logo → golden tint */
    filter: brightness(0.9) sepia(0.6) saturate(4) hue-rotate(5deg) opacity(0.75);
    transition: all 0.35s ease;
}

.pe-badge:hover .pe-badge-logo {
    filter: brightness(1.1) sepia(0.8) saturate(5) hue-rotate(5deg) opacity(1);
    transform: rotate(-5deg) scale(1.05);
}

/* ── Text column ── */
.pe-badge-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;                                    /* FIX: more breathing room */
}

/* Tagline — italic philosophical quote */
.pe-badge-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.7rem;
    color: rgba(212, 175, 55, 0.55);
    letter-spacing: 0.01em;
    line-height: 1.35;
    font-weight: 400;
    transition: color 0.35s ease;
    white-space: nowrap;
}

.pe-badge:hover .pe-badge-tagline {
    color: rgba(212, 175, 55, 0.9);
}

/* Name row */
.pe-badge-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pe-badge-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.45;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.pe-badge:hover .pe-badge-dot {
    opacity: 1;
    box-shadow: 0 0 4px var(--gold);
}

.pe-badge-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;                          /* FIX: clearer hierarchy */
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.05em;
    transition: color 0.35s ease;
}

.pe-badge:hover .pe-badge-name {
    color: var(--gold-bright);
}

/* Sub-label — FIX: warmer gold tone, not cold grey */
.pe-badge-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.63rem;
    color: rgba(212, 175, 55, 0.38);            /* FIX: warm gold, not grey */
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.35s ease;
}

.pe-badge:hover .pe-badge-sub {
    color: rgba(212, 175, 55, 0.72);
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */

.k17-back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    border: none;
    border-radius: 50%;
    color: var(--bg-darker);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
    z-index: 1000;
}

.k17-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.k17-back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5);
}

.k17-back-to-top svg {
    width: 24px;
    height: 24px;
}

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

@media (max-width: 1200px) {
    .k17-footer-main .k17-footer-container {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 50px;
    }

    /* About col spans full width on tablet */
    .k17-footer-about {
        grid-column: 1 / -1;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .k17-footer-main {
        padding: 60px 0 40px;
    }

    .k17-footer-main .k17-footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 24px;
    }

    .k17-footer-container {
        padding: 0 24px;
    }

    .k17-footer-about {
        grid-column: 1;
        max-width: 100%;
    }

    .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .footer-legal {
        justify-content: flex-start;
    }

    .legal-menu {
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer-credit {
        order: -1;
        width: 100%;
        justify-content: flex-start;
    }

    .pe-badge {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .pe-badge-tagline {
        white-space: normal;        /* allow wrap on small screens */
    }

    .k17-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .k17-back-to-top svg {
        width: 20px;
        height: 20px;
    }

    /* CTA button full width on mobile */
    .footer-cta-btn {
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .k17-footer-main {
        padding: 50px 0 30px;
    }

    .k17-footer-container {
        padding: 0 20px;
    }

    .footer-logo-k17 {
        font-size: 2rem;
    }

    .footer-logo-text {
        font-size: 0.95rem;
    }

    .footer-tagline {
        font-size: 0.8rem;
    }

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

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

    .contact-text {
        font-size: 0.85rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input,
    .newsletter-btn {
        width: 100%;
    }

    .newsletter-btn {
        height: 44px;
    }

    .k17-footer-bottom {
        padding: 24px 0;
    }

    .footer-copyright p,
    .legal-menu a,
    .credit-text,
    .credit-link {
        font-size: 0.8rem;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.footer-menu a:focus,
.social-link:focus,
.newsletter-input:focus,
.newsletter-btn:focus,
.legal-menu a:focus,
.footer-cta-btn:focus,
.pe-badge:focus,
.k17-back-to-top:focus {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.k17-footer-col {
    animation: fadeInUp 0.8s ease backwards;
}

.k17-footer-col:nth-child(1) { animation-delay: 0.1s; }
.k17-footer-col:nth-child(2) { animation-delay: 0.2s; }
.k17-footer-col:nth-child(3) { animation-delay: 0.3s; }
.k17-footer-col:nth-child(4) { animation-delay: 0.4s; }