/* ========================================
   MyRyda Artikel - Modern CSS Framework
   ======================================== */

:root {
    --primary-color: #0066cc;
    --primary-dark: #00529b;
    --primary-light: #0080ff;
    --secondary-color: #00529b;
    --accent-color: #00a8e8;
    --text-primary: #1a1a2e;
    --text-secondary: #2c3e50;
    --text-light: #6c757d;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border-color: #e9ecef;
    --shadow-sm: 0 1px 2px 0 rgba(0, 102, 204, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 102, 204, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 102, 204, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(0, 102, 204, 0.2);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 0;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ========================================
   Header & Navigation
   ======================================== */

.header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-secondary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.8) 0%, rgba(0, 82, 155, 0.8) 100%), 
                url('../background/photo-1764044371318-c7a7d546859c.avif');
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5), 
                 0 0 20px rgba(0,0,0,0.3);
    font-weight: 800;
}

.hero p {
    color: rgba(255,255,255,1);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5), 
                 0 0 15px rgba(0,0,0,0.3);
    font-weight: 500;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    color: rgba(255,255,255,0.8);
}

.breadcrumb a {
    color: white;
}

/* ========================================
   Container & Layout
   ======================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ========================================
   Article Content
   ======================================== */

.article-main {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    min-width: 0;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-icon {
    color: var(--primary-color);
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-excerpt {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-content ul, .article-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   Cards & Boxes
   ======================================== */

.info-box {
    background: linear-gradient(135deg, #0066cc 0%, #00529b 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.info-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.info-box p {
    color: rgba(255,255,255,0.9);
}

.highlight-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.success-box {
    background: #d1fae5;
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

/* ========================================
   Comparison Table
   ======================================== */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.comparison-table th {
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tr:hover {
    background: var(--bg-secondary);
}

.comparison-table .highlight-row {
    background: #eff6ff;
    font-weight: 600;
}

/* ========================================
   Feature List
   ======================================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
    border-color: var(--primary-color);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0066cc 0%, #00529b 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* ========================================
   Sidebar
   ======================================== */

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.related-article {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.related-article:last-child {
    border-bottom: none;
}

.related-article:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.related-article h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.related-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* CTA Widget Styling */
.sidebar-widget.cta-widget {
    background: linear-gradient(135deg, #0066cc 0%, #00529b 100%) !important;
    color: white !important;
    padding: 2rem !important;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.sidebar-widget.cta-widget .widget-title {
    color: white !important;
    border-color: rgba(255,255,255,0.3) !important;
    font-size: 1.25rem;
}

.sidebar-widget.cta-widget p {
    color: rgba(255,255,255,0.95) !important;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sidebar-widget.cta-widget .btn-cta {
    width: 100%;
    text-align: center;
    display: block;
    background: white !important;
    color: #0066cc !important;
    font-weight: 700;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
}

.sidebar-widget.cta-widget .btn-cta:hover {
    background: rgba(255,255,255,0.95) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: #00529b !important;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, #0066cc 0%, #00529b 100%);
    color: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin: 3rem 0;
    box-shadow: var(--shadow-xl);
}

.cta-section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta-primary {
    background: white;
    color: var(--primary-color);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    /* Mobile: Lebar 100% untuk semua elemen */
    body {
        padding: 0;
        margin: 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .container,
    .article-layout {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        margin: 0;
    }
    
    .article-main {
        width: 100%;
        padding: 1rem;
        border-radius: var(--radius-md);
        margin: 0;
    }
    
    .navbar {
        padding: 1rem;
        width: 100%;
    }
    
    .hero {
        padding: 3rem 1rem;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .article-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .article-content {
        font-size: 1rem;
        width: 100%;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
        padding-left: 0.75rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .article-content ul,
    .article-content ol {
        margin-left: 1rem;
        padding-right: 0.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Table responsive - scroll horizontal */
    .comparison-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    .comparison-table thead,
    .comparison-table tbody,
    .comparison-table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Images 100% width */
    .featured-image,
    .article-content img,
    .article-image img {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        border-radius: var(--radius-md);
    }
    
    /* CTA Section */
    .cta-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-cta {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Sidebar widgets on mobile */
    .sidebar-widget {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .widget-title {
        font-size: 1rem;
    }
    
    /* Info boxes */
    .info-box,
    .highlight-box,
    .warning-box,
    .success-box {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-success {
    background: var(--secondary-color);
    color: white;
}

.badge-warning {
    background: var(--accent-color);
    color: white;
}

/* ========================================
   Share Buttons
   ======================================== */

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-share i {
    font-size: 1.1rem;
}

.btn-share-facebook {
    background: #1877f2;
    color: white;
}

.btn-share-facebook:hover {
    background: #0d65d9;
    color: white;
}

.btn-share-twitter {
    background: #1da1f2;
    color: white;
}

.btn-share-twitter:hover {
    background: #0c8bd9;
    color: white;
}

.btn-share-linkedin {
    background: #0a66c2;
    color: white;
}

.btn-share-linkedin:hover {
    background: #004182;
    color: white;
}

.btn-share-whatsapp {
    background: #25d366;
    color: white;
}

.btn-share-whatsapp:hover {
    background: #1da851;
    color: white;
}
