/* Newspaper Grid */
.newspapers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.newspapers-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.newspaper-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.newspaper-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.newspaper-preview {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--card-bg);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.newspaper-preview::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"><text y="20" font-family="serif" font-size="4" fill="rgba(255,255,255,0.1)">NEWS</text><text y="40" font-family="serif" font-size="2" fill="rgba(255,255,255,0.05)">DAILY HERALD</text><text y="60" font-family="serif" font-size="1.5" fill="rgba(255,255,255,0.05)">Breaking News Today</text></svg>');
    opacity: 0.3;
}

.newspaper-info {
    padding: 1.5rem;
}

.newspaper-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.newspaper-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newspaper-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #e5e5e5;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: #f5f5f5;
}

.action-btn.primary {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.action-btn.primary:hover {
    background: #333;
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

/* List View Styles */
.newspaper-card.list-view {
    display: flex;
    height: 120px;
}

.newspaper-card.list-view .newspaper-preview {
    width: 180px;
    height: 100%;
    flex-shrink: 0;
}

.newspaper-card.list-view .newspaper-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.newspaper-card.list-view .newspaper-actions {
    margin-top: auto;
}

/* Featured Section */
.featured-section {
    margin-bottom: 4rem;
}

.featured-newspaper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.featured-preview {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: white; */
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.featured-preview::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"><text y="15" font-family="serif" font-size="6" font-weight="bold" fill="rgba(255,255,255,0.1)">TODAY</text><text y="30" font-family="serif" font-size="3" fill="rgba(255,255,255,0.08)">THE MORNING HERALD</text><text y="45" font-family="serif" font-size="2" fill="rgba(255,255,255,0.06)">BREAKING NEWS</text><text y="60" font-family="serif" font-size="1.5" fill="rgba(255,255,255,0.05)">Latest Updates</text></svg>');
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.featured-content p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.featured-actions {
    display: flex;
    gap: 1rem;
}

.featured-btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.featured-btn.primary {
    background: #1a1a1a;
    color: white;
}

.featured-btn.primary:hover {
    background: #333;
    transform: translateY(-2px);
}

.featured-btn.secondary {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #e5e5e5;
}

.featured-btn.secondary:hover {
    border-color: #1a1a1a;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-preview {
    width: 100%;
    max-width: 600px;
    height: 700px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Hide class for filtering */
.hidden {
    display: none !important;
}