/* RESPONSIVE TABLES - OBLIGATOIRE */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.responsive-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.responsive-table th,
.responsive-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.responsive-table th {
    background: #2E86AB;
    color: white;
    font-weight: 600;
}

@media (max-width: 768px) {
    .responsive-table {
        min-width: auto;
        display: block;
        white-space: nowrap;
    }
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
    }
    .responsive-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .responsive-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 8px;
        background: white;
    }
    .responsive-table td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: left;
        white-space: normal;
    }
    .responsive-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        text-align: left;
        font-weight: bold;
        color: #2E86AB;
    }
}

/* CATEGORY LAYOUT */
.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 0;
}

/* HERO SECTION */
.category-hero {
    background: linear-gradient(135deg, #2E86AB 0%, #A23B72 100%);
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 50px;
    color: white;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #FFD700;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* BREAKING NEWS */
.breaking-news {
    margin-bottom: 50px;
}

.breaking-news h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1a1a1a;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    border-left: 4px solid #2E86AB;
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card.urgent {
    border-left-color: #F24236;
}

.news-card.trending {
    border-left-color: #FFD700;
}

.news-card.market {
    border-left-color: #2E86AB;
}

.news-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #F24236;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.news-card.trending .news-badge {
    background: #FFD700;
    color: #1a1a1a;
}

.news-card.market .news-badge {
    background: #2E86AB;
}

.news-card h3 {
    margin: 15px 0 10px 0;
    color: #1a1a1a;
    font-size: 1.2rem;
}

.news-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.news-time {
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
}

/* MARKET INDICATORS */
.market-indicators {
    margin-bottom: 50px;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
}

.market-indicators h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a1a1a;
    font-size: 2rem;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.indicator-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 4px solid #2E86AB;
}

.indicator-card.positive {
    border-top-color: #28a745;
}

.indicator-card.warning {
    border-top-color: #ffc107;
}

.indicator-card.neutral {
    border-top-color: #6c757d;
}

.indicator-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2E86AB;
    margin-bottom: 10px;
}

.indicator-card.positive .indicator-value {
    color: #28a745;
}

.indicator-card.warning .indicator-value {
    color: #ffc107;
}

.indicator-label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.indicator-trend {
    font-size: 0.9rem;
    color: #666;
}

/* THEMED ARTICLES */
.themed-articles {
    margin-bottom: 30px;
}

.themed-articles h2 {
    margin-bottom: 25px;
    color: #1a1a1a;
    font-size: 2rem;
}

.theme-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 20px;
    border: 2px solid #2E86AB;
    background: white;
    color: #2E86AB;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-btn:hover,
.tab-btn.active {
    background: #2E86AB;
    color: white;
}

/* ARTICLES GRID */
.articles-section {
    margin-bottom: 50px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card.featured {
    border: 2px solid #F24236;
}

.article-header {
    padding: 20px 20px 0 20px;
}

.article-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.article-date {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    color: #666;
}

.article-category {
    background: #2E86AB;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
}

.reading-time {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
}

.article-content {
    padding: 0 20px;
}

.article-content h3 {
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.article-content h3 a:hover {
    color: #2E86AB;
}

.article-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.article-tags {
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.article-footer {
    padding: 0 20px 20px 20px;
}

.read-more {
    color: #2E86AB;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* NO ARTICLES */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-articles-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-articles h3 {
    margin-bottom: 15px;
    color: #1a1a1a;
}

/* ECONOMIC WATCH */
.economic-watch {
    margin-bottom: 50px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.economic-watch h2 {
    margin-bottom: 30px;
    color: #1a1a1a;
    font-size: 2rem;
}

.watch-content h3 {
    margin-bottom: 20px;
    color: #2E86AB;
    font-size: 1.3rem;
}

/* NEWSLETTER */
.newsletter-section {
    margin-bottom: 50px;
}

.newsletter-card {
    background: linear-gradient(135deg, #2E86AB 0%, #1a5f7a 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.newsletter-card h2 {
    margin-bottom: 15px;
    font-size: 2rem;
}

.newsletter-card p {
    margin-bottom: 25px;
    opacity: 0.9;
    font-size: 1.1rem;
}

.newsletter-form .form-group {
    display: flex;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto 15px auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 25px;
    background: #F24236;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: #d93025;
}

.newsletter-info {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .category-container {
        padding: 20px 15px 0;
    }
    
    .category-hero {
        padding: 40px 25px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .indicators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .theme-tabs {
        justify-content: center;
    }
    
    .tab-btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .market-indicators,
    .economic-watch {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .indicators-grid {
        grid-template-columns: 1fr;
    }
    
    .indicator-value {
        font-size: 2rem;
    }
    
    .themed-articles h2,
    .market-indicators h2,
    .economic-watch h2 {
        font-size: 1.5rem;
    }
}