/* Responsive CSS */

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }

    .prayer-times {
        max-width: 900px;
    }

    .prayer-times-container {
        min-width: 700px;
    }

    .slide-image img {
        height: 450px;
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-item {
        flex: 0 0 calc(33.333% - 15px);
        min-width: calc(33.333% - 15px);
    }

    .author-card {
        min-width: 450px;
    }

    .news-haber-main {
        grid-template-columns: 2fr 1fr;
        gap: 15px;
    }

    .news-haber-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .top-bar .container {
        flex-direction: column;
    }

    .top-bar-left,
    .top-bar-right {
        max-width: 100%;
        width: 100%;
    }

    .top-bar-right {
        justify-content: center;
        margin-top: 5px;
    }

    .currency-info {
        justify-content: center;
        flex: 1;
        border-right: none;
        margin-right: 0;
        padding: 5px 0;
    }

    .main-header .container {
        flex-wrap: wrap;
    }

    .logo {
        margin: 0 auto 10px;
    }

    .search-box {
        order: 3;
        max-width: 100%;
        margin: 10px 0;
    }

    .header-buttons {
        margin-left: auto;
    }

    .nav-menu {
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .prayer-times {
        max-width: 720px;
    }

    .prayer-times-container {
        min-width: 600px;
    }

    .prayer-time {
        padding: 10px 8px;
        min-width: 65px;
    }

    .prayer-hour {
        font-size: 16px;
    }

    .sahur-countdown {
        min-width: 180px;
    }

    .location {
        min-width: 160px;
    }

    .slide-image img {
        height: 400px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content {
        padding: 15px 25px 25px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .news-item {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }

    .news-image img {
        height: 180px;
    }

    .author-card {
        min-width: 400px;
    }

    .authors-header {
        padding-right: 140px;
    }

    .more-authors {
        top: 20px;
        right: 20px;
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Kategoriler ve Sidebar */
    .news-section .main-content,
    .news-section .sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .news-section .sidebar {
        margin-top: 30px;
    }

    .featured-news .news-image img {
        height: 350px;
    }

    .featured-news .news-details h3 {
        font-size: 22px;
    }

    .league-table {
        overflow-x: auto;
        margin-bottom: 15px;
    }

    .league-table table {
        min-width: 600px;
    }

    /* Haber Gündem Bölümü */
    .news-haber-main {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .news-haber-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .news-haber-item.large .news-image img {
        height: 250px;
    }

    .team-buttons {
        gap: 8px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .team-button {
        padding: 6px 14px;
        font-size: 13px;
    }

    .slider-pagination {
        bottom: 5px;
        padding: 5px 0;
    }

    .slider-pagination .page-number {
        display: none;
        font-size: 10px;
        margin-bottom: 3px;
    }

    /* Lig Tablosu Responsive Düzenlemeleri */
    .league-table th,
    .league-table td {
        padding: 8px 5px;
        font-size: 13px;
    }

    .league-table th:nth-child(4),
    .league-table th:nth-child(5),
    .league-table th:nth-child(6),
    .league-table td:nth-child(4),
    .league-table td:nth-child(5),
    .league-table td:nth-child(6) {
        padding: 8px 2px;
    }

    .table-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }

    .header-left {
        order: 1;
    }

    .logo {
        order: 2;
    }

    .header-buttons {
        order: 3;
    }

    .search-box {
        order: 4;
    }

    .prayer-times {
        max-width: 540px;
        margin: 15px auto;
    }

    .prayer-times-container {
        min-width: 500px;
    }

    .prayer-time {
        padding: 8px 6px;
        min-width: 55px;
    }

    .prayer-name {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .prayer-hour {
        font-size: 15px;
    }

    .sahur-countdown {
        min-width: 140px;
        padding: 8px;
    }

    .sahur-text {
        font-size: 11px;
    }

    .countdown {
        font-size: 18px;
    }

    .location {
        min-width: 130px;
        padding: 8px;
        font-size: 12px;
    }

    .slide-image img {
        height: 350px;
    }

    .slide-content h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .slide-content {
        padding: 15px 20px 20px;
    }

    .slider-pagination {
        bottom: 5px;
    }

    .slider-pagination .page-number {
        display: none;
        font-size: 10px;
        margin-bottom: 3px;
    }

    .slider-pagination .page-dots {
        max-width: 98%;
    }

    .slider-pagination .dot {
        width: 25px;
        height: 3px;
    }

    .slide-nav button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .slide-back-button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin-top: 10px;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .news-item {
        flex: 0 0 calc(100% - 15px);
        min-width: calc(100% - 15px);
    }

    .news-image img {
        height: 220px;
    }

    .author-card {
        min-width: 100%;
    }

    .author-image {
        flex: 0 0 100px;
    }

    .authors-header {
        padding-right: 120px;
    }

    .more-authors {
        top: 15px;
        right: 15px;
        font-size: 11px;
        padding: 5px 10px;
    }

    /* Kategoriler ve Sidebar */
    .featured-news .news-image img {
        height: 300px;
    }

    .featured-news .news-details h3 {
        font-size: 20px;
    }

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

    .news-item-small .news-image img {
        height: 180px;
    }

    .news-item-small .news-details h3 {
        font-size: 16px;
    }

    .widget-header h3 {
        font-size: 16px;
    }

    .poll-option label {
        font-size: 13px;
    }

    .post-content h4 {
        font-size: 13px;
    }

    /* Haber Gündem Bölümü */
    .news-haber-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .news-haber-item.large .news-details h3 {
        font-size: 18px;
    }

    .news-haber-item.small .news-details h3 {
        font-size: 15px;
    }

    /* Yeşil çarpı işaretlerini kaldırmak için eklenen stil */
    .news-haber-item.small:nth-child(3)::before,
    .news-haber-item.small:nth-child(3)::after,
    .sidebar-widget:nth-child(1)::before,
    .sidebar-widget:nth-child(1)::after {
        display: none !important;
    }

    .team-buttons {
        gap: 6px;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }

    .team-button {
        padding: 5px 12px;
        font-size: 12px;
    }

    .currency-info {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 5px 0;
    }

    .currency-info span {
        margin: 0 5px;
        font-size: 11px;
    }

    /* Lig Tablosu Responsive Düzenlemeleri */
    .league-table {
        overflow-x: auto;
        margin-bottom: 15px;
    }

    .league-table table {
        min-width: 500px;
    }

    .league-table th,
    .league-table td {
        padding: 6px 4px;
        font-size: 12px;
    }

    .league-table th:nth-child(4),
    .league-table th:nth-child(5),
    .league-table th:nth-child(6),
    .league-table td:nth-child(4),
    .league-table td:nth-child(5),
    .league-table td:nth-child(6) {
        padding: 6px 2px;
    }

    .league-table td:nth-child(2) {
        max-width: 80px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .table-footer {
        padding: 8px;
        font-size: 11px;
    }

    .legend {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 5px;
    }

    .promotion-legend,
    .playoff-legend {
        margin: 0 8px;
    }

    .last-update {
        text-align: center;
        display: block;
        width: 100%;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .top-bar-left {
        justify-content: flex-start;
    }

    .breaking-news {
        font-size: 10px;
        padding: 4px 8px;
        margin-right: 10px;
    }

    .news-ticker {
        font-size: 12px;
    }

    .currency-info span {
        margin: 0 3px;
        padding: 2px 4px;
        font-size: 10px;
    }

    .currency-info .rate-value {
        font-size: 10px;
    }

    .weather {
        font-size: 12px;
    }

    .prayer-times {
        max-width: 100%;
        margin: 10px auto;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }

    .prayer-times-container {
        min-width: auto;
        flex-wrap: wrap;
        justify-content: center;
        padding: 5px;
        background: linear-gradient(135deg, #1e293b, #0f172a);
    }

    .prayer-time {
        padding: 8px 6px;
        min-width: 60px;
        margin: 3px;
        border-radius: 6px;
        background-color: rgba(255, 255, 255, 0.08);
        flex: 0 0 calc(50% - 6px);
        transition: all 0.3s ease;
    }

    .prayer-time:hover {
        background-color: rgba(255, 255, 255, 0.12);
        transform: translateY(-2px);
    }

    /* Mobil görünümde aktif namaz vakti için stil */
    .prayer-time.active {
        background-color: rgba(14, 165, 233, 0.25);
        box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
        border: 1px solid rgba(14, 165, 233, 0.3);
    }

    .prayer-time.active .prayer-name {
        color: #7dd3fc;
    }

    .prayer-time.active .prayer-hour {
        color: #ffffff;
        font-weight: 700;
    }

    .prayer-name {
        font-size: 11px;
        font-weight: 500;
        color: #94a3b8;
        margin-bottom: 3px;
    }

    .prayer-hour {
        font-size: 15px;
        font-weight: 700;
        color: #ffffff;
    }

    .sahur-countdown {
        min-width: 100%;
        margin-top: 5px;
        padding: 8px;
        background-color: rgba(14, 165, 233, 0.15);
        border-radius: 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sahur-text {
        font-size: 11px;
        color: #94a3b8;
    }

    .countdown {
        font-size: 18px;
        font-weight: 700;
        color: #0ea5e9;
    }

    .location {
        width: 100%;
        text-align: center;
        padding: 8px 0;
        font-size: 11px;
        color: #94a3b8;
    }

    .slide-image img {
        height: 300px;
    }

    .slide-content h2 {
        font-size: 18px;
        line-height: 1.4;
    }

    .slide-content p {
        font-size: 14px;
    }

    .slide-content {
        padding: 10px 15px 15px;
    }

    .slide-category {
        padding: 5px 10px;
        font-size: 12px;
        top: 10px;
        right: 10px;
    }

    .slider-pagination {
        bottom: 5px;
        padding: 5px 0;
    }

    .slider-pagination .page-number {
        font-size: 10px;
        margin-bottom: 3px;
    }

    .slider-pagination .page-dots {
        max-width: 98%;
    }

    .slider-pagination .dot {
        width: 18px;
        height: 18px;
        margin: 0 1px 2px;
        font-size: 9px;
    }

    .slide-nav button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .slide-back-button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .footer-widget h3 {
        font-size: 16px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 30px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 30px;
    }

    .horizontal-news {
        margin: 30px 0;
    }

    .section-header {

        align-items: flex-start;
        gap: 15px;
    }

    .news-image img {
        height: 200px;
    }

    .author-card {
        flex-direction: column;
    }

    .author-image {
        flex: 0 0 auto;
    }

    .author-image img {
        width: 100px;
        height: 100px;
    }

    .author-info {
        padding: 0 15px 15px;
    }

    .authors-header {
        padding: 15px;
        padding-right: 110px;
    }

    .authors-header h2 {
        font-size: 20px;
    }

    .more-authors {
        top: 15px;
        right: 10px;
        font-size: 10px;
        padding: 4px 8px;
    }

    /* Kategoriler ve Sidebar */
    .featured-news .news-image img {
        height: 250px;
    }

    .featured-news .news-details h3 {
        font-size: 18px;
    }

    .featured-news .news-details p {
        font-size: 14px;
    }

    .news-item-small .news-image img {
        height: 160px;
    }

    .news-item-small .news-details h3 {
        font-size: 15px;
    }

    .widget-header h3 {
        font-size: 15px;
    }

    .poll-option label {
        font-size: 12px;
    }

    .percentage {
        font-size: 11px;
    }

    .poll-submit {
        font-size: 13px;
        padding: 8px;
    }

    .post-number {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }

    .post-content h4 {
        font-size: 12px;
    }

    /* Haber Gündem Bölümü */
    .news-haber {
        border-radius: 8px;
    }

    .news-haber-header {
        padding: 12px 15px;
    }

    .news-haber-content {
        padding: 15px;
    }

    .news-haber-item.large .news-image img {
        height: 200px;
    }

    .news-haber-item.small .news-image img {
        height: 140px;
    }

    .news-haber-item .news-details {
        padding: 10px;
    }

    .news-haber-item.large .news-details h3 {
        font-size: 16px;
    }

    .news-haber-item.small .news-details h3 {
        font-size: 14px;
    }

    .news-haber-item .news-meta {
        padding: 0 10px 10px;
    }

    .news-haber-footer {
        padding: 12px 15px;
    }

    .news-haber-item.small .news-details {
        min-height: 70px;
    }

    .news-haber-item.small .news-details h3 {
        font-size: 15px;
        height: auto;
        -webkit-line-clamp: 3;
    }

    .team-buttons {
        gap: 5px;
        margin-bottom: 10px;
        padding-bottom: 5px;
    }

    .team-button {
        padding: 5px 10px;
        font-size: 11px;
    }

    /* Lig Tablosu Responsive Düzenlemeleri */
    .league-table th,
    .league-table td {
        padding: 5px 3px;
        font-size: 11px;
    }

    .league-table th:nth-child(5),
    .league-table td:nth-child(5) {
        display: none;
    }

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

    .data-disclaimer {
        font-size: 10px;
    }
}

/* Takım butonları için responsive stiller */
@media (max-width: 768px) {
    .team-buttons {
        gap: 8px;
        margin-top: 10px;
    }

    .team-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .team-buttons {
        gap: 5px;
        margin-top: 8px;
    }

    .team-button {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Spor Bölümü Responsive Stilleri */
@media (max-width: 991px) {
    .team-buttons {
        gap: 8px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .team-button {
        padding: 6px 14px;
        font-size: 13px;
    }

    .league-table th,
    .league-table td {
        padding: 8px 5px;
        font-size: 13px;
    }

    .league-table th:nth-child(6),
    .league-table td:nth-child(6),
    .league-table th:nth-child(7),
    .league-table td:nth-child(7) {
        display: none;
    }
}

@media (max-width: 767px) {
    .team-buttons {
        gap: 6px;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }

    .team-button {
        padding: 5px 12px;
        font-size: 12px;
    }

    .news-haber-main {
        flex-direction: column;
    }

    .news-haber-grid {
        grid-template-columns: 1fr;
    }

    .league-table th:nth-child(5),
    .league-table td:nth-child(5) {
        display: none;
    }

    .legend {
        display: block;
        margin-bottom: 5px;
    }

    /* Popüler haberler ve anket widget'larını gizle */
    .sidebar-widget .poll-container,
    .sidebar-widget .popular-posts {
        display: none;
    }
}

@media (max-width: 575px) {
    .team-buttons {
        justify-content: center;
    }

    .league-table th,
    .league-table td {
        padding: 6px 3px;
        font-size: 12px;
    }

    .league-table th:nth-child(4),
    .league-table td:nth-child(4) {
        display: none;
    }
}

/* Künye Sayfası Responsive Stilleri */
@media (max-width: 992px) {
    .kunye-label {
        flex: 0 0 200px;
    }
}

@media (max-width: 768px) {
    .kunye-item {
        flex-direction: column;
    }

    .kunye-label {
        flex: 0 0 100%;
        margin-bottom: 5px;
    }

    .kunye-value {
        flex: 0 0 100%;
    }

    .kunye-section h2 {
        font-size: 20px;
    }

    .page-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .kunye-content {
        padding: 20px 15px;
    }

    .kunye-section h2 {
        font-size: 18px;
    }

    .page-header h1 {
        font-size: 24px;
    }
}

/* Tablet ve Mobil Ortak */
@media screen and (max-width: 991px) {
    .top-bar {
        display: none;
    }

    .container {
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .header {
        padding: 10px;
    }

    .logo img {
        max-height: 40px;
    }

    .main-menu {
        padding: 10px;
    }

    .menu-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }

    .menu-list::-webkit-scrollbar {
        height: 3px;
    }

    .menu-list::-webkit-scrollbar-thumb {
        background: var(--primary-color);
    }

    .menu-item {
        flex: 0 0 auto;
        margin-right: 15px;
    }

    .content {
        padding: 10px;
    }

    .news-card {
        margin-bottom: 15px;
    }

    .news-card-img {
        height: 200px;
    }

    .news-card-title {
        font-size: 16px;
    }

    .sidebar {
        margin-top: 20px;
    }

    .footer {
        padding: 20px 10px;
    }

    .footer-menu {
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Sadece Mobil */
@media screen and (max-width: 767px) {
    .logo img {
        max-height: 30px;
    }

    .news-card-img {
        height: 180px;
    }

    .news-card-title {
        font-size: 14px;
    }

    .section-title {
        font-size: 18px;
    }

    .breaking-news {
        flex-direction: column;
    }

    .breaking-news-label {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }

    .search-form {
        width: 100%;
    }

    .social-links {
        justify-content: center;
    }

    .weather-widget,
    .currency-widget {
        flex-direction: column;
        text-align: center;
    }
}

/* Çok Küçük Ekranlar */
@media screen and (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-list-item {
        flex-direction: column;
    }

    .news-list-img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }

    .author-image {
        margin: 0 auto 10px;
    }

    /* Popüler haberler ve anket widget'larını gizle */
    .sidebar-widget:has(.poll-container),
    .sidebar-widget:has(.popular-posts) {
        display: none;
    }
}