/* Estilos específicos para el periódico */

/* Quick Category Menu Styles */
.quick-category-menu {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.quick-menu-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quick-menu-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quick-menu-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quick-menu-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.quick-menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quick-menu-card:hover::before {
    transform: scaleX(1);
}

.quick-menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.quick-menu-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
}

.quick-menu-card.active::before {
    transform: scaleX(1);
}

.menu-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.menu-icon i {
    font-size: 1.8rem;
    color: white;
}

.menu-icon.comunidad {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.menu-icon.institucional {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.menu-icon.educacion {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.menu-icon.eventos {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.menu-icon.sindical {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.quick-menu-card:hover .menu-icon {
    transform: scale(1.1) rotate(5deg);
}

.quick-menu-card h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.quick-menu-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.quick-search-bar {
    margin-top: 2rem;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-container input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-btn, .clear-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-btn {
    right: 50px;
    background: #e74c3c;
}

.search-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.clear-btn:hover {
    background: #c0392b;
    transform: translateY(-50%) scale(1.1);
}

/* Newspaper Header Styles */
.newspaper-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newspaper-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.newspaper-title {
    position: relative;
    z-index: 1;
}

.newspaper-title h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Georgia', serif;
}

.newspaper-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 1.1rem;
    opacity: 0.9;
}

.newspaper-info span {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Breaking News Styles */
.breaking-news {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: pulse-breaking 2s infinite;
}

@keyframes pulse-breaking {
    0%, 100% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.3); }
    50% { box-shadow: 0 0 30px rgba(231, 76, 60, 0.6); }
}

.breaking-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
}

.breaking-header i {
    animation: flash 1s infinite;
}

@keyframes flash {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* Current Category Display */
.current-category {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.current-category h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.current-category p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* News Grid Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.news-article {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.article-header h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.4;
}

.section-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-tag.institucional {
    background: #3498db;
    color: white;
}

.section-tag.comunidad {
    background: #2ecc71;
    color: white;
}

.section-tag.educacion {
    background: #9b59b6;
    color: white;
}

.section-tag.sindical {
    background: #e74c3c;
    color: white;
}

.section-tag.general {
    background: #95a5a6;
    color: white;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* No Results Styles */
.no-results {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.no-results-content i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.no-results-content h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.no-results-content p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* Loading Styles */
.news-loading {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    grid-column: 1 / -1;
}

.news-loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .quick-menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .quick-menu-card {
        padding: 1rem;
    }
    
    .menu-icon {
        width: 50px;
        height: 50px;
    }
    
    .menu-icon i {
        font-size: 1.5rem;
    }
    
    .newspaper-title h1 {
        font-size: 2rem;
    }
    
    .newspaper-info {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .breaking-news {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .quick-menu-grid {
        grid-template-columns: 1fr;
    }
    
    .search-container input {
        padding: 0.8rem 3rem 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .search-btn, .clear-btn {
        width: 35px;
        height: 35px;
    }
    
    .clear-btn {
        right: 45px;
    }
}