/**
 * Sinergi Dalam Asa - Main Theme CSS
 * Glassmorphism, Theme Variables, Animations, Utilities & Typography
 */

:root {
    --brand-navy: #0b2046;
    --brand-blue: #163f7a;
    --brand-red: #d91e18;
    --brand-orange: #f39c12;
    --brand-red-hover: #b71914;
    --brand-orange-hover: #d68910;
}

/* Light Theme (Default) */
body.light-theme {
    background-color: #f8fafc;
    color: #1e293b;
}

body.light-theme .glass-nav {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(11, 32, 70, 0.05);
    box-shadow: 0 4px 20px -2px rgba(11, 32, 70, 0.03);
}

body.light-theme .glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.65) 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px -5px rgba(11, 32, 70, 0.07);
}

body.light-theme .glass {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px 0 rgba(11, 32, 70, 0.04);
}

body.light-theme .text-heading {
    color: #0b2046;
}

body.light-theme .text-muted {
    color: #475569;
}

body.light-theme .border-theme {
    border-color: rgba(11, 32, 70, 0.1);
}

body.light-theme input,
body.light-theme textarea,
body.light-theme select {
    background: rgba(255, 255, 255, 0.8);
    color: #0f172a;
    border: 1px solid rgba(11, 32, 70, 0.15);
}

/* Dark Theme */
body.dark-theme,
body.dark {
    background-color: #070f1e;
    color: #f1f5f9;
}

body.dark-theme .glass-nav,
body.dark .glass-nav {
    background: rgba(11, 32, 70, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

body.dark-theme .glass-card,
body.dark .glass-card {
    background: linear-gradient(135deg, rgba(16, 42, 85, 0.75) 0%, rgba(11, 32, 70, 0.55) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.45);
}

body.dark-theme .glass,
body.dark .glass {
    background: rgba(11, 32, 70, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.25);
}

body.dark-theme .text-heading,
body.dark .text-heading {
    color: #ffffff;
}

body.dark-theme .text-muted,
body.dark .text-muted {
    color: #cbd5e1;
}

body.dark-theme .border-theme,
body.dark .border-theme {
    border-color: rgba(255, 255, 255, 0.09);
}

body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select,
body.dark input,
body.dark textarea,
body.dark select {
    background: rgba(11, 32, 70, 0.65);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Background Animated Shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    filter: blur(110px);
    opacity: 0.28;
    border-radius: 50%;
    animation: blob 16s infinite alternate ease-in-out;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #d91e18;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 42vw;
    height: 42vw;
    background: #0b2046;
    animation-delay: -5s;
}

.shape-3 {
    top: 35%;
    left: 35%;
    width: 35vw;
    height: 35vw;
    background: #f39c12;
    animation-delay: -10s;
}

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.08); }
    66% { transform: translate(-25px, 25px) scale(0.92); }
    100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Gradients & Buttons */
.text-gradient {
    background: linear-gradient(135deg, #f39c12 0%, #d91e18 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #163f7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #d91e18 0%, #a11410 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(217, 30, 24, 0.35);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(217, 30, 24, 0.55);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

/* Layout Utilities */
.site-main {
    flex-grow: 1;
    padding-top: 5.5rem;
}

.container-custom {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Navigation Links */
.nav-link {
    transition: all 0.2s ease;
    color: inherit;
    text-decoration: none;
}

body.light-theme .nav-link:hover {
    color: #d91e18;
    background: rgba(217, 30, 24, 0.08);
}

body.dark-theme .nav-link:hover,
body.dark .nav-link:hover {
    color: #f39c12;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active,
.current-menu-item > a {
    color: #d91e18 !important;
    background: rgba(217, 30, 24, 0.1);
}

body.dark-theme .nav-link.active,
body.dark-theme .current-menu-item > a,
body.dark .nav-link.active,
body.dark .current-menu-item > a {
    color: #f39c12 !important;
    background: rgba(243, 156, 18, 0.15);
}

/* WordPress Post Entry Content */
.entry-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h1, 
.entry-content h2, 
.entry-content h3, 
.entry-content h4, 
.entry-content h5, 
.entry-content h6 {
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.entry-content a {
    color: #d91e18;
    text-decoration: underline;
    text-underline-offset: 4px;
}

body.dark-theme .entry-content a,
body.dark .entry-content a {
    color: #f39c12;
}

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

.entry-content blockquote {
    border-left: 4px solid #d91e18;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    background: rgba(217, 30, 24, 0.05);
    border-radius: 0 1rem 1rem 0;
}

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

.posts-pagination .page-numbers {
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.posts-pagination .page-numbers.current {
    background: #d91e18;
    color: #ffffff !important;
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
