/* Gunluk Gazeteler Sayfasi */

.newspapers-page {
    min-height: 100vh;
    padding: 24px 0 40px;
    background: radial-gradient(circle at top, #1e293b 0, #020617 55%, #000 100%);
}

.newspapers-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.newspapers-header {
    text-align: center;
    margin-bottom: 24px;
    color: #e5e7eb;
}

.newspapers-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.newspapers-header h1 i {
    color: #f97316;
}

.newspapers-header p {
    font-size: 14px;
    color: #9ca3af;
}

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

.newspaper-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newspaper-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: #f97316;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.9);
}

.newspaper-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.newspaper-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 16px;
    display: flex;
    align-items: flex-end;
    min-height: 80px;
}

.newspaper-card .newspaper-name {
    font-size: 14px;
    font-weight: 600;
    color: #fef3c7;
    text-align: center;
    width: 100%;
}

.newspaper-icon {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, #f97316, #b91c1c 70%);
    color: #fef3c7;
}

.newspaper-icon i {
    font-size: 28px;
}

.loading, .error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 16px;
}

.error {
    color: #ef4444;
}

/* Gazete Detay Sayfası */
.newspaper-detail-page {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
}

.newspaper-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0.8));
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 8px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.back-button:hover {
    transform: translateX(-3px);
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.4);
}

.back-button i {
    font-size: 16px;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.header-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.header-title i {
    color: #f97316;
    font-size: 24px;
}

.newspaper-date {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Kontrol Butonları */
.newspaper-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.control-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.4);
}

.control-btn i {
    font-size: 16px;
}

.zoom-level {
    padding: 8px 12px;
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.5);
    border-radius: 6px;
    color: #f97316;
    font-weight: 600;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
}

/* Gazete Resmi Container */
.newspaper-image-container {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(249, 115, 22, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    overflow: auto;
}

.newspaper-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: grab;
}

.newspaper-image:active {
    cursor: grabbing;
}

.no-image {
    text-align: center;
    color: #9ca3af;
    padding: 40px 20px;
}

.no-image i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #64748b;
}

.no-image p {
    font-size: 16px;
    margin: 0;
}

/* Bilgi Notu */
.newspaper-info {
    background: rgba(249, 115, 22, 0.1);
    border-left: 4px solid #f97316;
    padding: 12px 16px;
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 13px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .newspapers-page {
        padding: 16px 0 30px;
    }

    .newspapers-header {
        margin-bottom: 20px;
        padding: 0 12px;
    }

    .newspapers-header h1 {
        font-size: 22px;
        word-break: break-word;
    }

    .newspapers-header p {
        font-size: 13px;
        word-break: break-word;
    }

    .newspapers-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
        padding: 0 12px;
    }

    .newspaper-card {
        min-height: 220px;
    }

    .newspaper-overlay {
        min-height: 65px;
        padding: 12px 8px;
    }

    .newspaper-card .newspaper-name {
        font-size: 12px;
        word-break: break-word;
        line-height: 1.3;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    /* Detay Sayfası Mobil */
    .newspaper-detail-page {
        padding: 16px;
        margin-bottom: 30px;
    }

    .newspaper-detail-header {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        margin-bottom: 16px;
    }

    .header-title {
        width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .header-title h1 {
        font-size: 20px;
        word-break: break-word;
    }

    .newspaper-date {
        width: 100%;
        text-align: center;
    }

    .back-button {
        width: 100%;
        justify-content: center;
        font-size: 13px;
    }

    .newspaper-controls {
        gap: 8px;
        margin-bottom: 16px;
    }

    .control-btn {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1;
        min-width: 70px;
    }

    .zoom-level {
        font-size: 12px;
        padding: 6px 10px;
        min-width: 50px;
    }

    .newspaper-image-container {
        min-height: 300px;
        padding: 12px;
        margin-bottom: 16px;
    }

    .newspaper-info {
        font-size: 12px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .newspapers-page {
        padding: 12px 0 20px;
    }

    .newspapers-header {
        margin-bottom: 16px;
        padding: 0 8px;
    }

    .newspapers-header h1 {
        font-size: 18px;
        word-break: break-word;
    }

    .newspapers-header p {
        font-size: 12px;
        word-break: break-word;
    }

    .newspapers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 8px;
    }

    .newspaper-card {
        min-height: 180px;
    }

    .newspaper-overlay {
        min-height: 55px;
        padding: 8px 6px;
    }

    .newspaper-card .newspaper-name {
        font-size: 11px;
        word-break: break-word;
        line-height: 1.2;
        -webkit-line-clamp: 2;
    }

    /* Detay Sayfası Çok Küçük Ekran */
    .newspaper-detail-page {
        padding: 12px;
        margin-bottom: 20px;
    }

    .newspaper-detail-header {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        margin-bottom: 12px;
    }

    .header-title {
        width: 100%;
    }

    .header-title h1 {
        font-size: 16px;
        word-break: break-word;
    }

    .header-title i {
        font-size: 18px;
    }

    .newspaper-date {
        font-size: 12px;
    }

    .back-button {
        width: 100%;
        padding: 8px 12px;
        font-size: 12px;
    }

    .newspaper-controls {
        gap: 6px;
        margin-bottom: 12px;
    }

    .control-btn {
        padding: 6px 10px;
        font-size: 11px;
        flex: 1;
        min-width: 60px;
    }

    .control-btn i {
        font-size: 14px;
    }

    .zoom-level {
        font-size: 11px;
        padding: 5px 8px;
        min-width: 45px;
    }

    .newspaper-image-container {
        min-height: 250px;
        padding: 8px;
        margin-bottom: 12px;
    }

    .newspaper-info {
        font-size: 11px;
        padding: 8px 10px;
    }

    .no-image i {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .no-image p {
        font-size: 14px;
    }
}
