/**
 * Informasi Page Styles
 * CSS khusus untuk halaman portal informasi /informasi/
 * 
 * @package Nexus
 * @version 1.0
 */

/* ========================================
   Hero Portal Section
   ======================================== */

.informasi-hero {
    background: linear-gradient(135deg, #2b0a0a 0%, #4a0f0f 50%, #8b1e1e 100%);
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.informasi-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.informasi-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.informasi-hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.informasi-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.informasi-hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Posts Grid Section
   ======================================== */

.informasi-section {
    background-color: #fef2f2;
    padding: 3rem 1.5rem;
    min-height: 400px;
}

.informasi-container {
    max-width: 1200px;
    margin: 0 auto;
}

.informasi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ========================================
   Post Card
   ======================================== */

.informasi-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.informasi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ========================================
   Thumbnail
   ======================================== */

.informasi-thumbnail-wrapper {
    position: relative;
    width: 100%;
}

.informasi-thumbnail-link {
    display: block;
    width: 100%;
}

.informasi-thumbnail {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #fee2e2;
}

.informasi-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.informasi-card:hover .informasi-thumbnail-image {
    transform: scale(1.05);
}

/* Thumbnail Fallback */
.informasi-thumbnail-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b1e1e 0%, #b91c1c 50%, #dc2626 100%);
}

.informasi-thumbnail-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Category Badge
   ======================================== */

.informasi-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.informasi-category-badge {
    display: inline-block;
    background-color: #b91c1c;
    color: #ffffff;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Card Content
   ======================================== */

.informasi-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ========================================
   Meta Info
   ======================================== */

.informasi-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.informasi-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #7f1d1d;
}

.informasi-date-icon {
    font-size: 0.9rem;
}

/* ========================================
   Title
   ======================================== */

.informasi-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2b0a0a;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.informasi-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.informasi-title a:hover {
    color: #b91c1c;
}

/* ========================================
   Excerpt
   ======================================== */

.informasi-excerpt {
    font-size: 0.95rem;
    color: #7f1d1d;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* ========================================
   Footer / Read More
   ======================================== */

.informasi-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #fee2e2;
}

.informasi-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #b91c1c;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease, gap 0.3s ease;
}

.informasi-read-more:hover {
    color: #dc2626;
    gap: 0.75rem;
}

.informasi-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.informasi-read-more:hover .informasi-arrow {
    transform: translateX(3px);
}

/* ========================================
   Pagination
   ======================================== */

.informasi-pagination {
    text-align: center;
    margin-top: 3rem;
}

.informasi-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.informasi-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    color: #7f1d1d;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #fee2e2;
    transition: all 0.3s ease;
}

.informasi-pagination .page-numbers:hover {
    background-color: #b91c1c;
    color: #ffffff;
    border-color: #b91c1c;
}

.informasi-pagination .page-numbers.current {
    background-color: #b91c1c;
    color: #ffffff;
    border-color: #b91c1c;
    pointer-events: none;
}

.informasi-pagination .page-numbers.dots {
    background-color: transparent;
    border: none;
    pointer-events: none;
    color: #7f1d1d;
}

.informasi-pagination-icon {
    font-size: 1rem;
}

/* ========================================
   Empty State
   ======================================== */

.informasi-empty {
    text-align: center;
    padding: 4rem 1.5rem;
}

.informasi-empty-content {
    max-width: 500px;
    margin: 0 auto;
}

.informasi-empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.informasi-empty-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2b0a0a;
    margin-bottom: 1rem;
}

.informasi-empty-description {
    font-size: 1rem;
    color: #7f1d1d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.informasi-btn-home {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
}

.informasi-btn-home:hover {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 6px 18px rgba(185, 28, 28, 0.4);
    transform: translateY(-2px);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .informasi-hero {
        padding: 2.5rem 1.5rem;
    }
    
    .informasi-hero-title {
        font-size: 1.75rem;
    }
    
    .informasi-grid {
        gap: 1.5rem;
    }
    
    .informasi-thumbnail {
        height: 220px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .informasi-hero {
        padding: 2rem 1rem;
    }
    
    .informasi-hero-title {
        font-size: 1.5rem;
    }
    
    .informasi-hero-description {
        font-size: 0.95rem;
    }
    
    .informasi-section {
        padding: 2rem 1rem;
    }
    
    .informasi-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .informasi-thumbnail {
        height: 200px;
    }
    
    .informasi-card-content {
        padding: 1.25rem;
    }
    
    .informasi-title {
        font-size: 1.15rem;
    }
    
    .informasi-pagination {
        margin-top: 2rem;
    }
    
    .informasi-pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .informasi-hero {
        padding: 1.5rem 0.75rem;
    }
    
    .informasi-hero-title {
        font-size: 1.25rem;
    }
    
    .informasi-hero-description {
        font-size: 0.9rem;
    }
    
    .informasi-section {
        padding: 1.5rem 0.75rem;
    }
    
    .informasi-grid {
        gap: 1.25rem;
    }
    
    .informasi-thumbnail {
        height: 180px;
    }
    
    .informasi-category-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }
    
    .informasi-card-content {
        padding: 1rem;
    }
    
    .informasi-title {
        font-size: 1.05rem;
    }
    
    .informasi-excerpt {
        font-size: 0.9rem;
    }
    
    .informasi-read-more {
        font-size: 0.9rem;
    }
    
    .informasi-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .informasi-empty {
        padding: 3rem 1rem;
    }
    
    .informasi-empty-icon {
        font-size: 3rem;
    }
    
    .informasi-empty-title {
        font-size: 1.5rem;
    }
    
    .informasi-empty-description {
        font-size: 0.95rem;
    }
}

/* ========================================
   Touch Device Optimizations
   ======================================== */

@media (hover: none) {
    .informasi-card:hover {
        transform: none;
    }
    
    .informasi-card:active {
        transform: scale(0.98);
    }
    
    .informasi-card:hover .informasi-thumbnail-image {
        transform: none;
    }
    
    .informasi-read-more:hover {
        gap: 0.5rem;
    }
}

/* ========================================
   Accessibility
   ======================================== */

.informasi-card:focus-within {
    outline: 2px solid #b91c1c;
    outline-offset: 2px;
}

.informasi-read-more:focus,
.informasi-btn-home:focus,
.informasi-pagination .page-numbers:focus {
    outline: 2px solid #b91c1c;
    outline-offset: 2px;
}

/* Screen Reader Only */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
