/*
 * Responsive CSS for Peer-Review Platform
 * Mobile-first approach with Bootstrap 5 grid system
 * Conservative breakpoints and fluid typography
 */

/* Mobile First - Base Styles (Default) */
/* Styles for screens 320px and up */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero-content h1 {
        font-size: 2.56rem;
    }
    
    .section-title h2 {
        font-size: 2.29rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .team-member img {
        width: 180px;
        height: 180px;
    }
}

/* Medium devices (tablets, 769px and up) */
@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.26rem;
    }
    
    .section-title h2 {
        font-size: 2.58rem;
    }
    
    .navbar-brand {
        font-size: 1.80rem;
    }
    
    .card-body {
        padding: 2rem;
    }
    
    .team-member img {
        width: 200px;
        height: 200px;
    }
    
    .contact-info {
        padding: 2.5rem;
    }
    
    .gallery-item img {
        height: 300px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-content h1 {
        font-size: 3.58rem;
    }
    
    .hero-content p {
        font-size: 1.44rem;
    }
    
    .section-title h2 {
        font-size: 2.80rem;
    }
    
    .section-title p {
        font-size: 1.38rem;
    }
    
    .card-title {
        font-size: 1.78rem;
    }
    
    .team-member img {
        width: 220px;
        height: 220px;
    }
    
    .contact-info {
        padding: 3rem;
    }
    
    .gallery-item img {
        height: 350px;
    }
    
    .blog-card img {
        height: 250px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content p {
        font-size: 1.53rem;
    }
    
    .section-title h2 {
        font-size: 3rem;
    }
    
    .section-title p {
        font-size: 1.43rem;
    }
    
    .team-member img {
        width: 240px;
        height: 240px;
    }
    
    .gallery-item img {
        height: 400px;
    }
    
    .blog-card img {
        height: 300px;
    }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .hero-content h1 {
        font-size: 4.54rem;
    }
    
    .section-title h2 {
        font-size: 3.32rem;
    }
    
    .team-member img {
        width: 260px;
        height: 260px;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 575px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.72rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title h2 {
        font-size: 1.85rem;
        margin-bottom: 0.91rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.39rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .navbar-brand {
        font-size: 1.35rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.91rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .blog-card img {
        height: 180px;
    }
    
    .faq-card {
        margin-bottom: 0.86rem;
    }
    
    .faq-card .card-body {
        padding: 1rem;
    }
}

/* Tablet portrait adjustments */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-section {
        min-height: 85vh;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .team-member img {
        width: 160px;
        height: 160px;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .blog-card img {
        height: 200px;
    }
}

/* Tablet landscape adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .team-member img {
        width: 180px;
        height: 180px;
    }
}

/* High resolution displays */
@media (min-resolution: 2dppx) {
    .team-member img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.65rem;
    }
    
    .hero-content p {
        font-size: 1.23rem;
    }
}

/* Print styles */
@media print {
    .hero-section {
        min-height: auto;
        background: white;
        color: black;
    }
    
    .navbar,
    .footer {
        display: none;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #cdbbbb;
    }
    
    .btn {
        display: none;
    }
    
    .gallery-item,
    .blog-card img {
        display: none;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
    }
    
    p {
        color: #404040;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    .sal-animate {
        transition: none;
    }
}

/* Dark mode support (if user prefers dark scheme) */

/* Container max-width adjustments */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 3px solid var(--primary-blue);
        outline-offset: 2px;
    }
}

/* Hover effects for non-touch devices */
@media (hover: hover) {
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    }
    
    .gallery-item:hover img {
        transform: scale(1.05);
    }
    
    .blog-card:hover {
        border-color: var(--primary-blue);
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .card:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
}

/* Specific adjustments for very small screens */
@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 1.60rem;
    }
    
    .section-title h2 {
        font-size: 1.54rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .contact-info {
        padding: 1rem;
    }
} 