/* 
* Literario - The Literature Club
* Responsive Stylesheet
*/

/* ===== RESPONSIVE STYLES ===== */

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .about-content {
        gap: 30px;
    }
    
    .writer-profile {
        flex-direction: column;
    }
    
    .writer-image {
        width: 100%;
        height: 300px;
    }
    
    .bookshelf {
        padding: 0 30px;
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero-quote blockquote {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .about-image:before {
        display: none;
    }
    
    .countdown-number {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .events-cards {
        justify-content: center;
    }
    
    .blog-cards {
        justify-content: center;
    }
    
    .footer-content {
        gap: 30px;
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-quote blockquote {
        font-size: 1.3rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 99;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 100;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .countdown-timer {
         /* flex-wrap: wrap; */ /* This causes countdown items to stack vertically on small screens. Changes made by Aditya */
    }
    
    .countdown-item {
        width: 45%;
        margin-bottom: 20px;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo, .footer-links, .footer-contact, .footer-social {
        width: 100%;
        text-align: center;
    }
    
    .footer h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-quote blockquote {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .quill-animation {
        display: none;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .event-card {
        width: 100%;
    }
    
    .blog-card {
        width: 100%;
    }
    
    .writer-profile {
        padding: 0;
    }
    
    .writer-details {
        padding: 20px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .form-group button {
        border-radius: 5px;
        width: 100%;
    }
    
    .instagram-grid {
        grid-template-columns: 1fr;
    }
    
    #random-quote {
        font-size: 1.3rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* Adjustments for very small devices */
@media (max-width: 320px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .logo span {
        font-size: 1.5rem;
    }
    
    .countdown-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Adjustments for large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero h1 {
        font-size: 6rem;
    }
    
    .hero-quote blockquote {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar, 
    .footer, 
    .back-to-top, 
    .newsletter-section,
    .instagram-feed,
    .hero-buttons,
    .scroll-indicator,
    .events-more,
    .blog-more,
    #new-quote-btn {
        display: none !important;
    }
    
    body {
        background-image: none;
        color: #000;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    .hero {
        height: auto;
        min-height: auto;
    }
    
    .hero-overlay {
        background: none;
    }
    
    .hero-content {
        color: #000;
    }
    
    .hero h1 {
        color: #000;
        text-shadow: none;
    }
    
    .event-card-inner,
    .blog-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
