/* =============================================
   STYLE.CSS - TOGEL77 Independent Review
   Author: Delivering Tomorrow
   Version: 1.0.0
   ============================================= */

/* ===================
   RESET & BASE STYLES
   =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Dark Red Theme */
    --primary-red: #8B0000;
    --dark-red: #5a0e0e;
    --accent-red: #c41e3a;
    --light-red-bg: #fff5f5;
    --white: #ffffff;
    --dark-gray: #1a1a1a;
    --medium-gray: #444444;
    --light-gray: #666666;
    --border-color: #e8d4d4;
    --highlight-red: #ffeaea;
    --card-bg: #ffffff;
    --keyword-red: #b22222;
    --gold-accent: #FFD700;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 4px 12px rgba(139, 0, 0, 0.08);
    --box-shadow-hover: 0 8px 20px rgba(139, 0, 0, 0.12);
    --gradient-red: linear-gradient(135deg, #8B0000 0%, #5a0e0e 100%);
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--medium-gray);
    background-color: var(--light-red-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================
   TYPOGRAPHY
   =================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: var(--primary-red);
}

h2 {
    font-size: 2.25rem;
    color: var(--dark-gray);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    color: var(--dark-red);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    color: var(--primary-red);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.keyword {
    color: var(--keyword-red);
    font-weight: 600;
    background-color: rgba(139, 0, 0, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    border-left: 2px solid var(--accent-red);
}

/* ===================
   HEADER & NAVIGATION
   =================== */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

/* Logo Area */
.logo-area {
    display: flex;
    align-items: center;
}

.logo-area a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-area img {
    height: 50px;
    width: auto;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.logo-area img:hover {
    transform: scale(1.02);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-red);
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-icon {
    transform: rotate(90deg);
}

/* Navigation Menu */
.navigation {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===================
   HERO SECTIONS
   =================== */
.hero-banner-section {
    width: 100%;
    margin: 20px 0 30px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.hero-banner {
    width: 100%;
    height: 350px;
    background: var(--gradient-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    padding: 40px 20px;
}

.banner-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.banner-tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    display: inline-block;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.banner-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-weight: 400;
    line-height: 1.6;
}

.banner-features {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-item {
    font-size: 0.8125rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Hero Content Section */
.hero-section {
    padding: 50px 0;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.publish-info {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-gray);
    font-size: 0.875rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--primary-red);
    flex-wrap: wrap;
    gap: 10px;
}

.reviewed-by {
    font-style: normal;
}

.reviewed-by strong {
    color: var(--primary-red);
    font-weight: 600;
}

.reviewed-by a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.reviewed-by a:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

/* ===================
   MAIN CONTENT LAYOUT
   =================== */
.main-content {
    display: flex;
    padding: 0 0 50px;
    gap: 40px;
}

.article-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* ===================
   CONTENT SECTIONS
   =================== */
section {
    margin-bottom: 3rem;
}

/* Methodology Section */
.editorial-purpose {
    background: #fff9f9;
    padding: 25px;
    border-left: 5px solid var(--keyword-red);
    margin-bottom: 40px;
    border-radius: 5px;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 2rem;
}

.faq-section h4 {
    color: var(--keyword-red);
    margin-bottom: 8px;
    font-size: 1rem;
}

.faq-section p {
    font-size: 0.875rem;
    color: var(--light-gray);
    line-height: 1.6;
}

/* Visual Mapping Section */
.diagram-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

/* Table of Contents */
#toc {
    padding: 30px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

#toc ul {
    list-style: none;
    padding: 0;
    line-height: 1.8;
    font-size: 0.9375rem;
}

#toc li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

#toc li::before {
    content: "•";
    color: var(--primary-red);
    position: absolute;
    left: 0;
}

#toc a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

#toc a:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

/* ===================
   BUTTONS
   =================== */
.btn-primary {
    text-decoration: none;
    background: var(--gold-accent);
    color: var(--dark-gray);
    padding: 14px 30px;
    border-radius: var(--border-radius);
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* ===================
   SIDEBAR STYLES
   =================== */
.sidebar-section {
    background: var(--white);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 1.25rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
}

.sidebar-section li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--border-color);
}

.sidebar-section li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-section a {
    text-decoration: none;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    font-size: 0.875rem;
}

.sidebar-section a:hover {
    color: var(--primary-red);
}

/* ===================
   PRE-FOOTER SECTION
   =================== */
.pre-footer-section {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}

.editorial-board {
    background: #fdfdfd;
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

/* ===================
   FOOTER
   =================== */
.site-footer {
    background: var(--dark-gray);
    color: #ccc;
    padding: 60px 0 30px;
    font-size: 0.875rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    line-height: 2;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
    text-decoration: underline;
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    font-size: 0.75rem;
    color: #777;
}

.copyright p {
    margin-bottom: 10px;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================
   RESPONSIVE DESIGN
   =================== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--box-shadow);
        display: none;
        z-index: 999;
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero-banner {
        height: 300px;
        padding: 30px 15px;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .feature-item {
        font-size: 0.75rem;
        padding: 6px 15px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-banner {
        height: 250px;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-features {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .btn-primary {
        padding: 12px 25px;
        font-size: 0.875rem;
    }
    
    .logo-area img {
        height: 40px;
    }
}

/* ===================
   PRINT STYLES
   =================== */
@media print {
    .site-header,
    .sidebar,
    .site-footer,
    .mobile-menu-btn,
    .hero-banner-section,
    .btn-primary {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: white;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .main-content {
        padding: 0;
    }
    
    .editorial-purpose,
    .disclaimer,
    .mapping-card {
        break-inside: avoid;
    }
}

/* ===================
   ACCESSIBILITY
   =================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}