/* =====================================================
   Srie Digital Media - Main Stylesheet
   Dominant Blue Theme
   ===================================================== */

:root {
    --primary: #1a56db;
    --primary-dark: #1e429f;
    --primary-light: #3f83f8;
    --secondary: #0e9f6e;
    --dark: #1f2a37;
    --gray-900: #111928;
    --gray-800: #1f2a37;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #1a56db 0%, #3f83f8 50%, #0ea5e9 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--gray-900);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--gray-100);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* ========== HEADER ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 42px;
    width: auto;
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-700);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    margin: 5px 0;
    transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
    background: var(--gradient);
    color: var(--white);
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========== SECTIONS ========== */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header .badge {
    display: inline-block;
    background: #e1effe;
    color: var(--primary);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.05rem;
}

/* ========== PILARS / SERVICES ========== */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.pillar-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    text-align: center;
}

.pillar-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    background: #e1effe;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
}

.pillar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.pillar-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* ========== PRODUCT CARDS ========== */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Portrait 3:4 */
.product-image {
    width: 100%;
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
    min-height: 0;
    background: var(--gray-100);
    overflow: hidden;
    line-height: 0;
}

.product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top;
    transition: var(--transition);
    display: block;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.product-body h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.product-body h3 a {
    color: inherit;
    text-decoration: none;
}

.product-body p {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    flex: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}

.product-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.25rem !important;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.85rem !important;
    }
    .product-body {
        padding: 0.75rem;
    }
    .product-body h3 {
        font-size: 0.9rem;
    }
    .product-body p {
        font-size: 0.78rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .product-price {
        font-size: 0.85rem;
    }
    .product-footer .btn {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.78rem !important;
    }
}

@media (max-width: 380px) {
    .products-grid {
        gap: 0.6rem !important;
    }
}

/* ========== BLOG CARDS ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
}

.blog-image {
    aspect-ratio: 16/9;
    background: var(--gray-100);
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-body {
    padding: 1.5rem;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.blog-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.blog-body h3 a:hover {
    color: var(--primary);
}

.blog-body p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* ========== ABOUT PAGE ========== */
.page-hero {
    background: var(--gray-50);
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* ========== CONTACT ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: #e1effe;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* ========== UTILITIES ========== */
.bg-light {
    background: var(--gray-50);
}

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

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .pillars {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid var(--gray-200);
        gap: 1rem;
        box-shadow: var(--shadow);
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero {
        padding: 3.5rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .section {
        padding: 3.5rem 0;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* ========== ADMIN STYLES ========== */
.admin-body {
    background: var(--gray-100);
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--gray-900);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.admin-sidebar .logo {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--gray-700);
    margin-bottom: 1rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--gray-400);
    font-weight: 500;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.admin-content {
    margin-left: 260px;
    padding: 2rem;
}


.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-menu-toggle {
    display: none;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.55rem 0.85rem;
    font-size: 1.15rem;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}

.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
}

.admin-sidebar-overlay.show {
    display: block;
}

.admin-sidebar-close {
    display: none;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 900px) {
    .admin-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .admin-sidebar {
        width: min(280px, 85vw);
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        z-index: 1000;
        box-shadow: 4px 0 24px rgba(0,0,0,0.25);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .admin-content {
        margin-left: 0;
        padding: 1rem 1rem 2rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .admin-header h1 {
        font-size: 1.25rem !important;
    }

    .admin-card {
        padding: 1rem;
        overflow-x: auto;
    }

    .table {
        min-width: 520px;
    }
}


.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-600);
    background: var(--gray-50);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #def7ec;
    color: #03543f;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #def7ec;
    color: #03543f;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #f8b4b4;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
}

.login-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.login-box p {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

/* ========== BANNERS / ADS ========== */
.site-banner {
    width: 100%;
    text-align: center;
    background: var(--gray-100);
    line-height: 0;
}
.site-banner img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}
.site-banner a { display: inline-block; }
.site-banner-top { border-bottom: 1px solid var(--gray-200); }
.site-banner-bottom { border-top: 1px solid var(--gray-200); }
.site-banner-middle {
    margin: 0 auto 2rem;
    max-width: 1200px;
    padding: 0 1.5rem;
}
.site-banner-inner {
    margin: 1.5rem auto;
    max-width: 1200px;
    padding: 0 1.5rem;
}

.banner-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.banner-popup-box {
    position: relative;
    background: #fff;
    border-radius: 0.75rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.banner-popup-box img {
    display: block;
    max-width: 100%;
    height: auto;
}
.banner-popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}
