/*
Theme Name: IMM Untuk Semua
Theme URI: https://immuntuksemua.com
Author: Tim Kerja IMM Untuk Semua
Author URI: https://immuntuksemua.com
Description: Tema WordPress resmi kampanye IMM Untuk Semua - Muh Akmal Ahsan. Desain modern dengan glassmorphism, responsive, dan mudah dikelola melalui WordPress Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: imm-untuk-semua
Tags: one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
body {
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

/* ==========================================================================
   AMBIENT BACKGROUND (Animated Orbs)
   ========================================================================== */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #ffffff;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 25s infinite ease-in-out alternate;
}

.orb-1 {
    width: 45vw; height: 45vw;
    background: radial-gradient(circle, rgba(201,42,42,0.8) 0%, rgba(201,42,42,0) 70%);
    top: -10%; left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(245,159,0,0.7) 0%, rgba(245,159,0,0) 70%);
    bottom: 5%; right: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 35vw; height: 35vw;
    background: radial-gradient(circle, rgba(201,42,42,0.5) 0%, rgba(201,42,42,0) 70%);
    bottom: -15%; left: 15%;
    animation-delay: -12s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5vw, 5vh) scale(1.05); }
    66% { transform: translate(-3vw, 10vh) scale(0.95); }
    100% { transform: translate(-8vw, -5vh) scale(1.1); }
}

/* ==========================================================================
   GLASSMORPHISM COMPONENTS
   ========================================================================== */
.glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px 0 rgba(201, 42, 42, 0.12);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 1);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATION
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ==========================================================================
   TIMELINE COMPONENT (Profil)
   ========================================================================== */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(201,42,42,0.5), rgba(245,159,0,0.5));
}

@media (min-width: 768px) {
    .timeline-container::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   ACCORDION COMPONENT (Visi Misi)
   ========================================================================== */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.accordion-content.show {
    opacity: 1;
}

.accordion-button.active .icon-cross {
    transform: rotate(45deg);
    color: #C92A2A;
}

/* ==========================================================================
   IMAGE ZOOM EFFECT
   ========================================================================== */
.img-zoom-container {
    overflow: hidden;
    border-radius: inherit;
}

.img-zoom-container img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom-container:hover img {
    transform: scale(1.08);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav-link.active-link {
    color: #C92A2A;
    font-weight: 700;
    position: relative;
}

.nav-link.active-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #C92A2A;
    border-radius: 2px;
}

/* WordPress Menu Styling - Reset default wp_nav_menu list styles */
.wp-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.wp-nav-menu li a {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wp-nav-menu li a:hover {
    color: #C92A2A;
}

.wp-nav-menu li.current-menu-item a,
.wp-nav-menu li.current-page-ancestor a {
    color: #C92A2A;
    font-weight: 700;
    position: relative;
}

.wp-nav-menu li.current-menu-item a::after,
.wp-nav-menu li.current-page-ancestor a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #C92A2A;
    border-radius: 2px;
}

/* Mobile Menu WordPress Styling */
.wp-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wp-mobile-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wp-mobile-menu li a {
    display: block;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.wp-mobile-menu li a:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #C92A2A;
}

.wp-mobile-menu li.current-menu-item a {
    background: rgba(255, 255, 255, 0.5);
    color: #C92A2A;
    font-weight: 700;
}

/* ==========================================================================
   CUSTOM SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ==========================================================================
   WORDPRESS SPECIFIC
   ========================================================================== */

/* Alignment classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

/* Caption */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    padding: 0.5rem 0;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Post content styles */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.entry-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content a {
    color: #C92A2A;
    text-decoration: underline;
    transition: color 0.2s;
}

.entry-content a:hover {
    color: #991b1b;
}

.entry-content blockquote {
    border-left: 4px solid #C92A2A;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: #4b5563;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.entry-content th {
    background: #f3f4f6;
    font-weight: 700;
}

/* Screen Reader Text (Accessibility) */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pagination .page-numbers.current {
    background: #C92A2A;
    color: white;
    border-color: #C92A2A;
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 1rem;
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    margin-bottom: 1.5rem;
}

.comment-body {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.5rem;
    padding: 1.5rem;
}

.comment-author img {
    border-radius: 9999px;
    margin-right: 0.75rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(209, 213, 219, 0.5);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 1rem;
}

.comment-form textarea {
    border-radius: 1rem;
    min-height: 120px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: rgba(201, 42, 42, 0.5);
    box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.1);
}

.comment-form .submit {
    background: linear-gradient(to right, #C92A2A, #b91c1c);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(201, 42, 42, 0.25);
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(201, 42, 42, 0.35);
}

/* Admin Bar Fix */
.admin-bar .fixed {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .fixed {
        top: 46px;
    }
}
