/* ========================================
   Hakka Özlem - Responsive Styles
   ======================================== */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .content-container {
        grid-template-columns: 1fr 300px;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
    }
    
    .daily-content-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 992px) {
    .left-sidebar {
        transform: translateX(-100%);
    }
    
    .left-sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-nav {
        display: none;
    }
    
    .content-container {
        grid-template-columns: 1fr;
    }
    
    .right-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large phones and small tablets */
@media (max-width: 768px) {
    .top-header {
        padding: var(--spacing-md);
    }
    
    .header-right {
        gap: var(--spacing-sm);
    }
    
    .radio-btn span {
        display: none;
    }
    
    .content-container {
        padding: var(--spacing-md);
    }
    
    .ramazan-banner {
        padding: var(--spacing-xl);
    }
    
    .banner-title {
        font-size: 1.75rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .news-section {
        padding: var(--spacing-md);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .right-sidebar {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-box-avatar {
        margin: 0 auto;
    }
    
    .author-box-stats {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Small phones */
@media (max-width: 480px) {
    :root {
        --spacing-xl: 1.5rem;
        --spacing-lg: 1rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .user-profile {
        padding: var(--spacing-md);
    }
    
    .banner-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .card-image {
        height: 150px;
    }
    
    .upcoming-event {
        flex-direction: column;
        text-align: center;
    }
    
    .event-info h5 {
        font-size: 0.9rem;
    }
    
    .prayer-item {
        padding: var(--spacing-sm);
    }
    
    .prayer-name,
    .prayer-time {
        font-size: 0.85rem;
    }
    
    .countdown {
        font-size: 1.25rem;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-link {
        padding: var(--spacing-sm);
    }
    
    .quick-link i {
        font-size: 1.2rem;
    }
    
    .quick-link span {
        font-size: 0.75rem;
    }
    
    .social-links {
        gap: var(--spacing-sm);
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .article-actions {
        flex-direction: column;
    }
    
    .action-group {
        width: 100%;
        justify-content: center;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .left-sidebar {
        width: 260px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .header-actions {
        gap: 4px;
    }
    
    .action-btn {
        width: 34px;
        height: 34px;
    }
}

/* Print styles */
@media print {
    .left-sidebar,
    .right-sidebar,
    .top-header,
    .ramazan-banner,
    .article-actions,
    .related-news,
    .comments-section,
    .main-footer {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-container {
        display: block;
        padding: 0;
    }
    
    .full-article {
        box-shadow: none;
        border: none;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(212, 175, 55, 0.5);
        --border-light: rgba(255, 255, 255, 0.3);
        --text-secondary: rgba(255, 255, 255, 0.95);
        --text-muted: rgba(255, 255, 255, 0.8);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (for future light theme) */
@media (prefers-color-scheme: light) {
    /* Light theme variables can be added here */
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Selection styles */
::selection {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

::-moz-selection {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: 600;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}
