/* ============================================
   assets/css/style.css - Main Styles
   ============================================ */

/* Variables */
:root {
    --navy: #0B1320;
    --electric-blue: #2162A1;
    --bright-blue: #2F80ED;
    --white: #FFFFFF;
    --soft-gray: #F4F7FA;
    --dark-text: #172033;
    --accent-orange: #D14900;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
}

/* Navbar */
.navbar {
    background: rgba(11, 19, 32, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
}

.navbar-brand {
    color: var(--white) !important;
    font-weight: 700;
    font-size: 1.4rem;
}

.brand-icon {
    margin-right: 8px;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: all 0.3s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--white) !important;
    background: rgba(47, 128, 237, 0.15);
    border-radius: 8px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2a4a 100%);
    color: var(--white);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(47, 128, 237, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-text h1 {
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-text .lead {
    color: rgba(255,255,255,0.8);
    font-size: 1.25rem;
    margin-top: 20px;
}

.hero-section .btn-outline-light {
    border-color: rgba(255,255,255,0.3);
}

.hero-section .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
}

/* Section Titles */
.section-title {
    font-weight: 700;
    color: var(--dark-text);
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--bright-blue);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Article Cards */
.article-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.article-card .card-body {
    padding: 1.5rem;
}

.article-card .badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Problem Cards */
.problem-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.problem-card:hover {
    border-color: var(--bright-blue);
    box-shadow: 0 8px 30px rgba(47, 128, 237, 0.15);
}

.problem-icon {
    font-size: 2.5rem;
}

/* Category Cards */
.category-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: block;
    color: var(--dark-text);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--bright-blue);
    box-shadow: 0 8px 30px rgba(47, 128, 237, 0.1);
    color: var(--dark-text);
}

.category-icon {
    font-size: 2rem;
}

/* Thought Card */
.thought-card {
    background: linear-gradient(135deg, #f8f9fa, var(--soft-gray));
    border-radius: 24px;
    border-left: 4px solid var(--bright-blue);
}

/* Archive Styles */
.archive-year-title {
    font-weight: 700;
    color: var(--navy);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--soft-gray);
}

.archive-month-title {
    font-weight: 600;
    color: var(--electric-blue);
    font-size: 1.2rem;
    margin: 24px 0 16px;
}

.archive-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.archive-card:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

/* Article Page */
.article-title {
    font-weight: 800;
    color: var(--dark-text);
    font-size: 2.5rem;
    line-height: 1.2;
}

.article-meta {
    color: #6c757d;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.technical-note,
.safety-note,
.important-note,
.troubleshooting-tip,
.repair-thought {
    background: var(--soft-gray);
    border-radius: 16px;
    border-left: 4px solid var(--bright-blue);
}

.safety-note {
    border-left-color: var(--accent-orange);
}

.important-note {
    border-left-color: #dc3545;
}

.troubleshooting-tip {
    border-left-color: #28a745;
}

.repair-thought {
    border-left-color: #6f42c1;
}

/* Footer */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    margin-top: 60px;
}

.footer h5,
.footer h6 {
    color: var(--white);
    font-weight: 600;
}

.footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.3s;
}

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

.footer .social-icons a {
    color: rgba(255,255,255,0.5);
    font-size: 1.3rem;
    transition: all 0.3s;
}

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

/* Responsive */
@media (max-width: 768px) {
    body {
    }
    
    .hero-section {
        padding: 40px 0 60px;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Utilities */
.bg-primary-subtle {
    background: rgba(47, 128, 237, 0.1);
}

.text-primary {
    color: var(--bright-blue) !important;
}

.btn-primary {
    background: var(--bright-blue);
    border-color: var(--bright-blue);
}

.btn-primary:hover {
    background: var(--electric-blue);
    border-color: var(--electric-blue);
}

.btn-outline-primary {
    color: var(--bright-blue);
    border-color: var(--bright-blue);
}

.btn-outline-primary:hover {
    background: var(--bright-blue);
    border-color: var(--bright-blue);
}

/* Component Cards */
.component-card {
    border: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(47, 128, 237, 0.15);
    border-color: var(--bright-blue);
}

.component-icon {
    font-size: 3rem;
}

/* Maintenance Cards */
.maintenance-card {
    border: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.maintenance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(47, 128, 237, 0.15);
    border-color: var(--bright-blue);
}

/* Table styling */
.table-hover tbody tr:hover {
    background-color: rgba(47, 128, 237, 0.05);
}

.table th {
    background-color: var(--soft-gray);
    font-weight: 600;
}

/* Page title underline effect */
.page-title {
    position: relative;
    padding-bottom: 16px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--bright-blue), var(--electric-blue));
    border-radius: 2px;
}