/* modern.css - Enhanced Modern UI Styles
   Premium design enhancements for Pesantren website */

/* ========================================
   MODERN UTILITIES & ENHANCEMENTS
   ======================================== */

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Better font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header & nav: dipindah ke header-new.css */

/* ========================================
   HERO SECTION ENHANCEMENTS
   ======================================== */
.hero-home::after {
    display: none;
}

.hero-home .btn {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-home .btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

/* ========================================
   CARD ENHANCEMENTS
   ======================================== */
.news-card,
.unit-card,
.quick-link-item {
    position: relative;
    overflow: hidden;
}

.news-card::before,
.unit-card::before,
.quick-link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(30, 58, 138, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.news-card:hover::before,
.unit-card:hover::before,
.quick-link-item:hover::before {
    opacity: 1;
}

/* Enhance card borders */
.news-card,
.unit-card {
    border: 1px solid rgba(16, 185, 129, 0.1);
    position: relative;
    z-index: 2;
}

/* ========================================
   BUTTON ENHANCEMENTS
   ======================================== */
.btn {
    position: relative;
    letter-spacing: 0.4px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.35);
}

/* ========================================
   SECTION SPACING
   ======================================== */
.home-section,
.section-bg,
.section-bg-white {
    position: relative;
}

.section-bg-white,
.section-bg {
    border-radius: 0;
}

/* ========================================
   GALLERY ENHANCEMENTS
   ======================================== */
.gallery-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 100%);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(16, 185, 129, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* ========================================
   PENGUMUMAN CARD ENHANCEMENTS
   ======================================== */
.pengumuman-card {
    position: relative;
    overflow: hidden;
}

.pengumuman-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    transition: width 0.3s ease;
}

.pengumuman-card:hover::before {
    width: 8px;
}

/* ========================================
   RESPONSIVE MOBILE ENHANCEMENTS
   ======================================== */
@media (max-width: 768px) {
    .hero-home {
        padding: 7.5rem 0 5.25rem;
    }

    .hero-home h1 {
        font-size: 1.75rem;
    }

    .hero-home p {
        font-size: 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr !important;
    }

    .gallery-preview {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .unit-grid {
        grid-template-columns: 1fr !important;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-home {
        padding: 5.25rem 0 3.75rem;
    }

    .hero-home h1 {
        font-size: 1.5rem;
    }

    .hero-home p {
        font-size: 0.95rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .gallery-preview {
        grid-template-columns: 1fr !important;
    }

    .news-image {
        height: 180px;
    }
}

/* ========================================
   ANIMATION ENHANCEMENTS
   ======================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
    }
}

.btn-primary:hover {
    animation: glow 2s ease-in-out;
}

/* ========================================
   DARK MODE SUPPORT (Optional)
   ======================================== */
@media (prefers-color-scheme: dark) {
    .news-card,
    .unit-card,
    .quick-link-item,
    .pengumuman-card {
        background: #1f2937;
        color: #f3f4f6;
        border-color: rgba(16, 185, 129, 0.2);
    }

    .news-title,
    .unit-title,
    .quick-link-title,
    .section-title h2 {
        color: #a7f3d0;
    }

    .news-excerpt,
    .unit-desc,
    .quick-link-desc {
        color: #d1d5db;
    }

    .news-meta,
    .pengumuman-meta {
        color: #9ca3af;
        border-color: rgba(16, 185, 129, 0.1);
    }
}
