/* ========================================
   Footer Redesign - Sejarah FKIP
   Orange Theme - Standalone CSS
======================================== */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* Footer Styles */
.modern-footer {
    /* Color Variables - Orange Theme */
    --ft-bg-primary: #1a1410;
    --ft-bg-secondary: #231a14;
    --ft-bg-card: #2d221a;
    --ft-accent: #e55a2b;
    --ft-accent-light: #ff7a4d;
    --ft-accent-dark: #c44a20;
    --ft-accent-glow: rgba(229, 90, 43, 0.2);
    --ft-text-primary: #ffffff;
    --ft-text-secondary: #c4b5a8;
    --ft-text-muted: #8a7a6d;
    --ft-border: rgba(255, 255, 255, 0.1);
    --ft-gradient: linear-gradient(135deg, #e55a2b 0%, #ff7a4d 50%, #f59e0b 100%);
    
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    background: var(--ft-bg-primary);
    color: var(--ft-text-secondary);
    margin-top: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.modern-footer *,
.modern-footer *::before,
.modern-footer *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Light Theme Override */
[data-theme="light"] .modern-footer {
    --ft-bg-primary: #faf8f6;
    --ft-bg-secondary: #f5f0eb;
    --ft-bg-card: #ffffff;
    --ft-accent: #e55a2b;
    --ft-accent-light: #ff7a4d;
    --ft-accent-glow: rgba(229, 90, 43, 0.12);
    --ft-text-primary: #1a1410;
    --ft-text-secondary: #5c4d42;
    --ft-text-muted: #9a8a7d;
    --ft-border: rgba(0, 0, 0, 0.08);
}

/* Decorative Top Edge */
.footer-edge {
    position: relative;
    height: 5px;
    background: var(--ft-gradient);
    overflow: hidden;
}

.footer-edge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Geometric Background Pattern */
.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.02;
    background-image: 
        linear-gradient(30deg, var(--ft-accent) 12%, transparent 12.5%, transparent 87%, var(--ft-accent) 87.5%, var(--ft-accent)),
        linear-gradient(150deg, var(--ft-accent) 12%, transparent 12.5%, transparent 87%, var(--ft-accent) 87.5%, var(--ft-accent)),
        linear-gradient(30deg, var(--ft-accent) 12%, transparent 12.5%, transparent 87%, var(--ft-accent) 87.5%, var(--ft-accent)),
        linear-gradient(150deg, var(--ft-accent) 12%, transparent 12.5%, transparent 87%, var(--ft-accent) 87.5%, var(--ft-accent));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    pointer-events: none;
}

/* Main Container */
.footer-main {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 48px 40px;
}

/* Top Section - Brand & Newsletter */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--ft-border);
    margin-bottom: 50px;
}

/* Brand Section */
.footer-brand {
    max-width: 460px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    text-decoration: none;
}

.brand-icon {
    position: relative;
    width: 56px;
    height: 56px;
    background: var(--ft-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-3deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.brand-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--ft-gradient);
    border-radius: 16px;
    opacity: 0.35;
    filter: blur(10px);
    z-index: -1;
}

.brand-icon i {
    font-size: 24px;
    color: #ffffff;
}

.brand-logo:hover .brand-icon {
    transform: rotate(3deg) scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-name {
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ft-text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

.brand-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: var(--ft-accent-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brand-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ft-text-secondary);
    margin-bottom: 28px;
}

/* Social Links - Icon Only Style */
.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    background: var(--ft-bg-card);
    border: 1px solid var(--ft-border);
    border-radius: 12px;
    color: var(--ft-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-pill i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.social-pill span {
    display: none;
}

.social-pill:hover {
    background: var(--ft-accent);
    border-color: var(--ft-accent);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--ft-accent-glow);
}

.social-pill:hover i {
    transform: scale(1.15);
}

/* Newsletter Section */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: var(--ft-accent-glow);
    border-radius: 50px;
    color: var(--ft-accent-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
    width: fit-content;
}

.newsletter-badge i {
    font-size: 13px;
}

.newsletter-title {
    font-family: 'Sora', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--ft-text-primary);
    line-height: 1.2;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.newsletter-desc {
    font-size: 14px;
    color: var(--ft-text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

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

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    background: var(--ft-bg-card);
    border: 1px solid var(--ft-border);
    border-radius: 12px;
    color: var(--ft-text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 0;
}

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

.newsletter-input:focus {
    outline: none;
    border-color: var(--ft-accent);
    box-shadow: 0 0 0 3px var(--ft-accent-glow);
}

.newsletter-btn {
    padding: 14px 28px;
    background: var(--ft-gradient);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--ft-accent-glow);
}

/* Navigation Grid */
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-nav-column {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

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

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

.nav-column-title {
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--ft-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-column-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--ft-gradient);
    border-radius: 2px;
    transform: rotate(45deg);
    flex-shrink: 0;
}

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

.nav-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ft-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 4px 0;
    transition: all 0.25s ease;
    position: relative;
}

.nav-list a i {
    width: 18px;
    font-size: 13px;
    opacity: 0.5;
    color: var(--ft-accent);
    transition: all 0.25s ease;
}

.nav-list a:hover {
    color: var(--ft-text-primary);
    transform: translateX(4px);
}

.nav-list a:hover i {
    opacity: 1;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--ft-bg-card);
    border: 1px solid var(--ft-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    border-color: var(--ft-accent);
    transform: translateX(4px);
    box-shadow: 0 4px 20px var(--ft-accent-glow);
}

.contact-card-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: var(--ft-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
}

.contact-card-content {
    flex: 1;
    min-width: 0;
}

.contact-card-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--ft-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.contact-card-value {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ft-text-primary);
    word-break: break-word;
    line-height: 1.4;
}

/* Bottom Bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    border-top: 1px solid var(--ft-border);
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 13px;
    color: var(--ft-text-muted);
}

.footer-copyright strong {
    color: var(--ft-text-secondary);
    font-weight: 600;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    font-size: 12px;
    color: var(--ft-text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-legal a:hover {
    color: var(--ft-accent);
}

.footer-credits {
    font-size: 12px;
    color: var(--ft-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-credits i {
    color: #ef4444;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: var(--ft-gradient);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) rotate(-3deg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(229, 90, 43, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.back-to-top:hover {
    transform: translateY(-4px) rotate(3deg) scale(1.05);
}

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

/* Tablet Landscape */
@media (max-width: 1200px) {
    .footer-main {
        padding: 60px 36px 36px;
    }

    .footer-top {
        gap: 50px;
    }

    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }

    .newsletter-title {
        font-size: 26px;
    }
}

/* Tablet Portrait */
@media (max-width: 992px) {
    .footer-main {
        padding: 50px 28px 28px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
        margin-bottom: 40px;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

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

    .brand-description {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .newsletter-form {
        max-width: 440px;
        width: 100%;
    }

    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

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

    .footer-meta {
        flex-direction: column;
        gap: 14px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .footer-main {
        padding: 44px 20px 20px;
    }

    .brand-icon {
        width: 50px;
        height: 50px;
    }

    .brand-icon i {
        font-size: 22px;
    }

    .brand-name {
        font-size: 20px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .brand-description {
        font-size: 14px;
    }

    .social-pill {
        width: 42px;
        height: 42px;
    }

    .social-pill i {
        font-size: 17px;
    }

    .newsletter-title {
        font-size: 22px;
    }

    .newsletter-desc {
        font-size: 13px;
    }

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

    .newsletter-input,
    .newsletter-btn {
        width: 100%;
        padding: 13px 18px;
    }

    .footer-nav-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .nav-column-title {
        font-size: 11px;
        margin-bottom: 16px;
    }

    .nav-list {
        gap: 10px;
    }

    .nav-list a {
        font-size: 13px;
    }

    .contact-card {
        padding: 12px;
    }

    .contact-card-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 13px;
    }

    .contact-card-value {
        font-size: 12px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .footer-main {
        padding: 36px 16px 16px;
    }

    .footer-top {
        gap: 32px;
        padding-bottom: 32px;
        margin-bottom: 32px;
    }

    .brand-logo {
        flex-direction: column;
        gap: 12px;
    }

    .brand-text {
        align-items: center;
        text-align: center;
    }

    .brand-icon {
        transform: rotate(0deg);
    }

    .social-links {
        gap: 10px;
    }

    .social-pill {
        width: 42px;
        height: 42px;
    }

    .newsletter-badge {
        font-size: 10px;
        padding: 6px 12px;
    }

    .newsletter-title {
        font-size: 20px;
    }

    .footer-nav-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .nav-column-title {
        text-align: center;
        justify-content: center;
    }

    .nav-list {
        align-items: center;
    }

    .nav-list a {
        justify-content: center;
    }

    .contact-cards {
        gap: 8px;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    .footer-copyright,
    .footer-credits {
        font-size: 11px;
    }

    .footer-legal {
        gap: 14px;
    }

    .footer-legal a {
        font-size: 11px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 16px;
        right: 16px;
        border-radius: 10px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .footer-main {
        padding: 28px 14px 14px;
    }

    .brand-name {
        font-size: 18px;
    }

    .newsletter-title {
        font-size: 18px;
    }

    .contact-card {
        padding: 10px;
        gap: 10px;
    }

    .contact-card-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 12px;
        border-radius: 8px;
    }
}

/* Hover States - Only on devices that support it */
@media (hover: hover) {
    .nav-list a:hover {
        padding-left: 4px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .footer-edge::after,
    .footer-nav-column,
    .back-to-top,
    .footer-credits i {
        animation: none;
    }

    .brand-icon,
    .social-pill,
    .contact-card,
    .newsletter-btn,
    .back-to-top {
        transition: none;
    }
    
    .footer-nav-column {
        opacity: 1;
        transform: none;
    }
}

/* Print Styles */
@media print {
    .modern-footer {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .footer-edge,
    .footer-pattern,
    .back-to-top,
    .newsletter-form {
        display: none !important;
    }
}