/**
 * DLVidTik Theme - Main CSS
 * Styles complémentaires pour le thème
 *
 * @package DLVidTik
 * @version 1.0.0
 */

/* =========================================
   HEADER STYLES
   ========================================= */

/* Header Top */
.header-top {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
    font-size: 0.875rem;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.header-top-menu a {
    color: #6c757d;
    font-size: 0.875rem;
}

.header-top-menu a:hover {
    color: #3b82f6;
}

/* Header Primary */
.header-primary {
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.header-primary-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .custom-logo-link {
    display: block;
    line-height: 0;
}

.site-branding .custom-logo {
    max-height: 80px;
    width: auto;
    height: auto;
}

.site-brand-text .site-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.header-ad-zone {
    max-width: 468px;
}

/* Header Bottom - Navigation */
.header-bottom {
    background: #ffffff;
    border-bottom: 2px solid #e9ecef;
}

.header-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: #1e293b;
    margin: 5px 0;
    transition: all 0.3s;
}

.primary-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    display: block;
    padding: 20px 18px;
    color: #1e293b;
    font-weight: 500;
    transition: all 0.3s;
}

.primary-menu > li > a:hover,
.primary-menu > li.active > a,
.primary-menu > li.current-menu-item > a {
    color: #3b82f6;
    background: #f8f9fa;
}

/* Sous-menus */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
}

.primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu li {
    display: block;
}

.primary-menu .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #1e293b;
}

.primary-menu .sub-menu a:hover {
    background: #f8f9fa;
    color: #3b82f6;
}

/* =========================================
   CONTENT LAYOUT
   ========================================= */

.site-main-fullwidth {
    width: 100%;
}

.content-area {
    padding: 40px 0;
}

.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.content-area.has-sidebar .content-sidebar-wrap {
    grid-template-columns: 1fr 350px;
}

.content-area.has-sidebar.sidebar-left .content-sidebar-wrap {
    grid-template-columns: 350px 1fr;
}

.content-area.has-sidebar.sidebar-left .sidebar {
    order: -1;
}

/* =========================================
   ENTRIES
   ========================================= */

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    margin-bottom: 0.5rem;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.entry-meta svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

.entry-meta a {
    color: #64748b;
}

.entry-meta a:hover {
    color: #3b82f6;
}

.entry-thumbnail {
    margin-bottom: 2rem;
    line-height: 0;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content {
    line-height: 1.8;
}

.entry-content > * {
    margin-bottom: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-content ul,
.entry-content ol {
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #64748b;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.tags-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.tags-links svg {
    width: 16px;
    height: 16px;
}

.tags-links a {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #475569;
}

.tags-links a:hover {
    background: #3b82f6;
    color: white;
}

/* =========================================
   ARCHIVE ITEMS
   ========================================= */

.archive-item {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 25px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.archive-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.archive-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: #3b82f6;
    color: white;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.read-more:hover {
    background: #2563eb;
    transform: translateX(5px);
}

/* =========================================
   PAGINATION
   ========================================= */

.pagination,
.post-navigation {
    margin: 3rem 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.page-numbers {
    display: inline-block;
    padding: 8px 15px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    transition: all 0.3s;
}

.page-numbers:hover,
.page-numbers.current {
    background: #3b82f6;
    color: white;
}

/* =========================================
   SIDEBAR
   ========================================= */

.sidebar {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.widget {
    background: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    color: #1e293b;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #475569;
}

.widget ul li a:hover {
    color: #3b82f6;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    background: #1e293b;
    color: #cbd5e0;
}

.footer-widgets {
    padding: 50px 0;
    border-bottom: 1px solid #334155;
}

.footer-widgets-inner {
    display: grid;
    gap: 40px;
}

.footer-widgets-inner.footer-columns-1 {
    grid-template-columns: 1fr;
}

.footer-widgets-inner.footer-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.footer-widgets-inner.footer-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.footer-widgets-inner.footer-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.footer-widget-title {
    color: #ffffff;
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: #cbd5e0;
}

.footer-widget a:hover {
    color: #3b82f6;
}

.footer-bottom {
    padding: 25px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright,
.footer-powered-by {
    font-size: 0.875rem;
}

.footer-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: #cbd5e0;
    font-size: 0.875rem;
}

.footer-menu a:hover {
    color: #3b82f6;
}

/* =========================================
   COMMENTS
   ========================================= */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.comments-title {
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 15px;
}

.comment-reply-title {
    margin-bottom: 1.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 15px;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    background: #3b82f6;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.comment-form .submit:hover {
    background: #2563eb;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
    .content-area.has-sidebar .content-sidebar-wrap {
        grid-template-columns: 1fr 300px;
    }
    
    .content-area.has-sidebar.sidebar-left .content-sidebar-wrap {
        grid-template-columns: 300px 1fr;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-top-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-primary-inner {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-ad-zone {
        width: 100%;
        max-width: 100%;
    }
    
    /* Menu Mobile */
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: relative;
    }
    
    .primary-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .primary-menu.active {
        display: flex;
    }
    
    .primary-menu > li {
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
    }
    
    /* Content */
    .content-area.has-sidebar .content-sidebar-wrap,
    .content-area.has-sidebar.sidebar-left .content-sidebar-wrap {
        grid-template-columns: 1fr;
    }
    
    .archive-item {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-widgets-inner.footer-columns-2,
    .footer-widgets-inner.footer-columns-3,
    .footer-widgets-inner.footer-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   UTILITIES & HELPERS
   ========================================= */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
}
