/**
 * 1ClicAuto.com - Styles
 * Design automobile professionnel
 */

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --accent-light: #ff6b6b;
    --dark: #0f0f1a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --success: #00bf63;
    --warning: #ffc107;
    
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --radius: 8px;
    --radius-lg: 16px;
    
    --transition: all 0.3s ease;
}

/* ========================================
   BASE
======================================== */

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: var(--light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

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

a:hover {
    color: var(--accent-light);
}

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

/* ========================================
   TOP BAR
======================================== */

.top-bar {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-text {
    font-size: 0.85rem;
}

.top-bar-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    transition: var(--transition);
}

.top-bar-link:hover {
    color: var(--accent);
}

/* ========================================
   NAVIGATION
======================================== */

.navbar {
    background: var(--primary) !important;
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    font-size: 2rem;
    color: var(--accent);
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.text-accent {
    color: var(--accent) !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent) !important;
}

.dropdown-menu {
    background: var(--secondary);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-item:hover {
    background: var(--accent);
    color: white;
}

.dropdown-item .badge {
    font-size: 0.7rem;
}

.bg-accent {
    background: var(--accent) !important;
}

.search-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    border-radius: var(--radius) 0 0 var(--radius);
}

.search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    color: white;
}

.btn-accent {
    background: var(--accent);
    border: none;
    color: white;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.btn-accent:hover {
    background: var(--accent-light);
    color: white;
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23e94560" stroke-width="0.5" opacity="0.3"/></svg>');
    background-size: 100px;
    opacity: 0.1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   SECTIONS
======================================== */

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    margin-bottom: 40px;
}

/* ========================================
   ARTICLE CARDS
======================================== */

.article-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.article-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-card-image img {
    transform: scale(1.1);
}

.article-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-card-title a {
    color: var(--primary);
}

.article-card-title a:hover {
    color: var(--accent);
}

.article-card-excerpt {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
    font-size: 0.85rem;
    color: var(--gray);
}

.article-card-date i,
.article-card-read i {
    margin-right: 5px;
    color: var(--accent);
}

/* Featured Article */
.featured-article {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 500px;
}

.featured-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
}

.featured-article-category {
    display: inline-block;
    background: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-article-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
}

.featured-article-meta {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ========================================
   SIDEBAR
======================================== */

.sidebar-widget {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);
    position: relative;
}

.widget-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--light);
    border-radius: var(--radius);
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.category-list a:hover {
    background: var(--accent);
    color: white;
    transform: translateX(5px);
}

.category-list a .count {
    background: var(--accent);
    color: white;
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.category-list a:hover .count {
    background: white;
    color: var(--accent);
}

/* Popular Posts Widget */
.popular-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

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

.popular-post-content h6 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.popular-post-content h6 a {
    color: var(--primary);
}

.popular-post-content h6 a:hover {
    color: var(--accent);
}

.popular-post-date {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ========================================
   SINGLE ARTICLE
======================================== */

.article-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 60px 0;
}

.article-header-category {
    display: inline-block;
    background: var(--accent);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-header-title {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 20px;
}

.article-header-meta {
    display: flex;
    gap: 30px;
    opacity: 0.9;
}

.article-header-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-featured-image {
    margin-top: -60px;
    margin-bottom: 40px;
}

.article-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.article-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: var(--primary);
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 25px 0 12px;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 20px 25px;
    background: var(--light);
    margin: 25px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-light);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.share-btn:hover {
    transform: scale(1.1);
    color: white;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }

/* Related Articles */
.related-articles {
    background: var(--light);
    padding: 60px 0;
}

/* ========================================
   PAGINATION
======================================== */

.pagination {
    justify-content: center;
    gap: 5px;
}

.page-link {
    border: none;
    border-radius: var(--radius) !important;
    padding: 12px 18px;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover {
    background: var(--accent);
    color: white;
}

.page-item.active .page-link {
    background: var(--accent);
    color: white;
}

/* ========================================
   FOOTER
======================================== */

.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
}

.footer-main {
    padding: 60px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-brand i {
    color: var(--accent);
    font-size: 2rem;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 12px 15px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn-accent {
    padding: 12px 20px;
}

.footer-bottom {
    background: var(--dark);
    padding: 20px 0;
    font-size: 0.9rem;
}

/* ========================================
   BACK TO TOP
======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-light);
    transform: translateY(-5px);
}

/* ========================================
   BREADCRUMB
======================================== */

.breadcrumb-section {
    background: var(--light);
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-light);
}

.breadcrumb {
    margin: 0;
    background: none;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--gray);
}

.breadcrumb-item.active {
    color: var(--primary);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .article-header-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .featured-article {
        height: 350px;
    }
    
    .featured-article-title {
        font-size: 1.5rem;
    }
    
    .article-content {
        padding: 25px;
    }
    
    .article-header-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ========================================
   UTILITIES
======================================== */

.bg-dark-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.text-accent {
    color: var(--accent) !important;
}

.btn-primary-custom {
    background: var(--accent);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.btn-outline-custom {
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 10px 28px;
    font-weight: 600;
    border-radius: var(--radius);
    background: transparent;
    transition: var(--transition);
}

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