/* JournalsTheme - Responsive Styles */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

/* Medium screens (768px to 1199px) */
@media (max-width: 1199px) {
    .homepage-sidebar {
        padding-left: 1rem;
    }
}

/* Tablet screens (768px to 991px) */
@media (max-width: 991px) {
    .hero-banner {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .homepage-sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .quick-stats {
        padding: 2rem 0;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .current-issue-section,
    .about-journal-section,
    .announcements-section {
        padding: 2rem;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
}

/* Small tablets (576px to 767px) */
@media (max-width: 767px) {
    .hero-banner {
        padding: 2.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .hero-placeholder i {
        font-size: 3rem;
    }
    
    .quick-stats {
        padding: 1.5rem 0;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .current-issue-section,
    .about-journal-section,
    .announcements-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .sidebar-widget {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .announcement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .announcement-title {
        font-size: 1.125rem;
    }
    
    .recent-issue-item a {
        padding: 0.75rem;
    }
    
    .issue-cover {
        width: 50px;
        height: 65px;
    }
    
    .issue-title {
        font-size: 0.9rem;
    }
    
    .metric-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Mobile phones (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-banner {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .hero-placeholder i {
        font-size: 2.5rem;
    }
    
    .quick-stats {
        padding: 1rem 0;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .current-issue-section,
    .about-journal-section,
    .announcements-section {
        padding: 1.25rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .widget-title {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .announcement-card {
        padding: 1.25rem;
    }
    
    .announcement-title {
        font-size: 1rem;
    }
    
    .announcement-date {
        font-size: 0.8rem;
    }
    
    .quick-links-list a {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    .recent-issue-item a {
        padding: 0.625rem;
        gap: 0.75rem;
    }
    
    .issue-cover {
        width: 40px;
        height: 55px;
    }
    
    .issue-title {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .issue-date {
        font-size: 0.8rem;
    }
    
    .metric-item {
        padding: 0.625rem 0;
    }
    
    .metric-label {
        font-size: 0.875rem;
    }
    
    .metric-value {
        font-size: 1rem;
    }
    
    .additional-content {
        padding: 1.5rem;
    }
}

/* Extra small screens (up to 400px) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .current-issue-section,
    .about-journal-section,
    .announcements-section,
    .sidebar-widget {
        padding: 1rem;
    }
    
    .announcement-card {
        padding: 1rem;
    }
    
    .recent-issue-item a {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .issue-cover {
        width: 60px;
        height: 80px;
        align-self: center;
    }
}

/* Print styles */
@media print {
    .hero-banner,
    .quick-stats,
    .sidebar-widget,
    .hero-actions,
    .btn {
        display: none !important;
    }
    
    .homepage-main {
        padding: 0;
    }
    
    .current-issue-section,
    .about-journal-section,
    .announcements-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .section-title {
        color: #000;
        font-size: 1.5rem;
    }
    
    .announcement-card {
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --bg-primary: #ffffff;
        --bg-secondary: #f5f5f5;
        --border-color: #000000;
    }
    
    .hero-banner {
        background: #000000 !important;
        color: #ffffff !important;
    }
    
    .stat-card,
    .current-issue-section,
    .about-journal-section,
    .announcements-section,
    .sidebar-widget {
        border: 2px solid #000000;
    }
    
    .btn {
        border: 2px solid #000000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .stat-card:hover,
    .announcement-card:hover,
    .recent-issue-item a:hover,
    .quick-links-list a:hover,
    .btn:hover {
        transform: none !important;
    }
}