/* public/css/custom.css */

:root {
    --primary: #0A2342;
    --primary-dark: #061629;
    --primary-light: #0D2F5E;
    --secondary: #FFFFFF;
    --accent: #C9A227;
    --accent-dark: #A8871E;
    --accent-light: #D4B44C;
    --neutral: #F5F5F5;
    --neutral-dark: #E5E5E5;
}

/* General Styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Text Colors */
.text-primary-custom { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.bg-primary-dark { background-color: var(--primary-dark) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-neutral { background-color: var(--neutral) !important; }
.bg-neutral-dark { background-color: var(--neutral-dark) !important; }

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(10, 35, 66, 0.2);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--primary);
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 162, 39, 0.3);
}

.btn-outline-light-custom {
    border: 2px solid white;
    color: white;
    background: transparent;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light-custom:hover {
    background-color: white;
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline-primary-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary-custom:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
    z-index: 1050;
}

.navbar-scrolled {
    background-color: white !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.navbar-scrolled .nav-link {
    color: var(--primary) !important;
}

.navbar-scrolled .navbar-brand {
    color: var(--primary) !important;
}

.navbar-brand {
    font-size: 28px;
    font-weight: 800;
    color: white !important;
    font-family: 'Playfair Display', Georgia, serif;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent) !important;
}

.dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 10px 0;
    margin-top: 15px;
    animation: fadeInDown 0.3s ease;
}

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--neutral);
    color: var(--primary);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 100px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/pattern.svg') repeat;
    opacity: 0.05;
}

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }
}

/* Cards */
.card-custom {
    border: none;
    border-radius: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-custom .card-body {
    padding: 25px;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
}

/* Rights Categories Grid */
.rights-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.rights-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.rights-card .icon-circle {
    width: 70px;
    height: 70px;
    background-color: rgba(10, 35, 66, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.rights-card:hover .icon-circle {
    background-color: var(--primary);
    color: white;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    opacity: 0.3;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item .year-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    z-index: 10;
}

.timeline-item .timeline-content {
    width: 45%;
    padding: 25px;
    background: var(--neutral);
    border-radius: 20px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

/* Legal Fact Banner */
.legal-fact-banner {
    background: var(--accent);
    color: var(--primary);
    padding: 15px 0;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
}

.search-overlay.active {
    display: block;
}

.search-overlay .search-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-top: 100px;
}

/* Article Card */
.article-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.article-card .category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(10, 35, 66, 0.05);
    color: var(--primary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tag:hover {
    background: var(--primary);
    color: white;
}

/* Profile Cards */
.professional-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.professional-card .profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Forms */
.form-control-custom {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 12px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(10, 35, 66, 0.1);
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--accent);
}

.footer .social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer .social-icon:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Newsletter Form */
.newsletter-form input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 15px;
    padding: 12px 20px;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form input:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent);
    color: white;
    box-shadow: none;
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.scroll-to-top:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-5px);
}

.scroll-to-top.show {
    display: flex;
}

/* Pagination */
.pagination .page-link {
    border-radius: 10px;
    margin: 0 3px;
    border: none;
    color: var(--primary);
    padding: 10px 18px;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: white;
}

/* Animation Classes */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        border-radius: 20px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }
    
    .navbar-collapse .nav-link {
        color: var(--primary) !important;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-item .year-badge {
        left: 30px;
    }
}