/* Chroniques Page Specific Styles */

/* Hero Section */
.chroniques-hero {
    background: linear-gradient(135deg, var(--french-blue) 0%, var(--french-red) 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.chroniques-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 56px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Controls Section */
.chroniques-controls {
    background: var(--off-white);
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 74px;
    z-index: 100;
}

.controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Tag Filter */
.tag-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-label,
.toggle-label {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    color: var(--medium-gray);
}

.tag-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-btn {
    padding: 8px 16px;
    background: white;
    color: var(--medium-gray);
    text-decoration: none;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tag-btn:hover,
.tag-btn.active {
    background: var(--french-blue);
    color: white;
    border-color: var(--french-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 38, 84, 0.3);
}

/* View Toggle */
.view-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-buttons {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-btn {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--medium-gray);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.toggle-btn:hover,
.toggle-btn.active {
    background: var(--french-blue);
    color: white;
}

.toggle-btn svg {
    transition: all 0.3s ease;
}

/* Content Section */
.chroniques-content {
    padding: 60px 0;
}

/* Grid and List Views */
.chroniques-grid {
    display: grid;
    gap: 40px;
}

.chroniques-grid.grid-view {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.chroniques-grid.list-view {
    grid-template-columns: 1fr;
}

/* Chronique Cards */
.chronique-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

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

/* Grid View Styles */
.grid-view .chronique-card {
    display: flex;
    flex-direction: column;
}

.grid-view .chronique-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.grid-view .chronique-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.grid-view .chronique-card:hover .chronique-image img {
    transform: scale(1.1);
}

.chronique-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 38, 84, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chronique-card:hover .chronique-overlay {
    opacity: 1;
}

.read-more-btn {
    background: var(--french-red);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: white;
    color: var(--french-red);
    transform: scale(1.05);
}

/* List View Styles */
.list-view .chronique-card {
    padding: 30px;
}

.list-view .chronique-content {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.chronique-image-small {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.chronique-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Styles */
.chronique-content {
    padding: 30px;
    flex: 1;
}

.list-view .chronique-content {
    padding: 0;
}

.chronique-text {
    flex: 1;
}

.chronique-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chronique-date,
.chronique-read-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.chronique-title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--black);
    text-transform: capitalize;
}

.list-view .chronique-title {
    font-size: 22px;
}

.chronique-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: var(--medium-gray);
    margin-bottom: 20px;
}

.chronique-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.chronique-tag {
    background: var(--off-white);
    color: var(--french-blue);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.chronique-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--off-white);
}

.chronique-author {
    font-size: 14px;
    color: var(--light-gray);
    font-style: italic;
}

.chronique-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--off-white);
    border-radius: 20px;
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: var(--french-blue);
    color: white;
    border-color: var(--french-blue);
}

/* Share Dropdown */
.share-dropdown {
    position: relative;
}

.share-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-link {
    display: block;
    padding: 10px 20px;
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.share-link:hover {
    background: var(--off-white);
    color: var(--french-blue);
}

.share-link.facebook:hover { color: #1877F2; }
.share-link.twitter:hover { color: #000000; }
.share-link.linkedin:hover { color: #0A66C2; }
.share-link.email:hover { color: #EA4335; }

/* Comments Section */
.comments-section {
    background: var(--off-white);
    margin-top: 20px;
    border-radius: 0 0 16px 16px;
    padding: 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.comments-section.active {
    max-height: 600px;
    overflow-y: auto;
}

.comments-header h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    color: var(--black);
    margin-bottom: 20px;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--french-blue);
}

.submit-comment-btn {
    background: var(--french-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-comment-btn:hover {
    background: var(--french-red);
    transform: translateY(-2px);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--french-blue);
}

.comment-author {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 5px;
}

.comment-date {
    font-size: 12px;
    color: var(--light-gray);
    margin-bottom: 10px;
}

.comment-text {
    color: var(--medium-gray);
    line-height: 1.5;
}

/* Modal */
.chronique-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.chronique-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--french-red);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--french-blue);
    transform: scale(1.1);
}

.modal-chronique img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.modal-chronique {
    padding: 40px;
}

.modal-chronique-meta {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    font-size: 14px;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--black);
}

.modal-content-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--medium-gray);
    margin-bottom: 30px;
}

.modal-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-tag {
    background: var(--french-blue);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* No Chroniques */
.no-chroniques {
    text-align: center;
    padding: 80px 20px;
    color: var(--medium-gray);
}

.no-chroniques h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    margin-bottom: 15px;
}

.no-chroniques a {
    color: var(--french-blue);
    text-decoration: none;
}

.no-chroniques a:hover {
    color: var(--french-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .controls-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tag-filter,
    .view-toggle {
        justify-content: center;
    }
    
    .chroniques-grid.grid-view {
        grid-template-columns: 1fr;
    }
    
    .list-view .chronique-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .chronique-image-small {
        width: 100%;
        height: 150px;
    }
    
    .chronique-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-chronique {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .chroniques-controls {
        padding: 20px 0;
    }
    
    .tag-buttons {
        justify-content: center;
    }
    
    .chronique-content {
        padding: 20px;
    }
    
    .chronique-actions {
        flex-wrap: wrap;
    }
}