/**
 * DigitalStackHub Theme - Responsive Styles
 * 
 * @package DigitalStackHub
 * @version 1.0.0
 */

/* ============================================================
   TABLET (max-width: 991px)
   ============================================================ */

@media (max-width: 991px) {
    
    /* Layout */
    .container {
        max-width: 100%;
    }
    
    /* Header */
    .site-header-main .header-main-wrapper {
        justify-content: space-between;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero Section */
    .hero-section .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-section .hero-image {
        margin-top: 40px;
    }
    
    /* Pricing Grid */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Resources Grid */
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Testimonials Grid */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer Widgets */
    .footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ============================================================
   MOBILE (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Container */
    .container {
        padding: 0 16px;
    }
    
    /* Section Spacing */
    .site-main {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Grid Layouts */
    .pricing-grid,
    .features-grid,
    .resources-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Pricing Cards */
    .pricing-card-featured {
        transform: scale(1);
    }
    
    .pricing-card-featured:hover {
        transform: translateY(-5px);
    }
    
    /* Resource Archive */
    .resource-archive-wrapper {
        flex-direction: column;
    }
    
    .resource-filters-sidebar {
        width: 100%;
        margin-bottom: 30px;
    }
    
    /* Blog Loop */
    .blog-loop-list .post-card {
        flex-direction: column;
    }
    
    .blog-loop-list .post-thumbnail {
        width: 100%;
    }
    
    /* Contact Page */
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form-map-wrapper {
        flex-direction: column;
    }
    
    .contact-form-container,
    .contact-map-container {
        width: 100%;
    }
    
    /* Footer */
    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-navigation ul {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Forms */
    .form-row {
        flex-direction: column;
    }
    
    .form-row .col-half {
        width: 100%;
    }
}

/* ============================================================
   SMALL MOBILE (max-width: 480px)
   ============================================================ */

@media (max-width: 480px) {
    
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .btn-large,
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Header */
    .site-branding .site-title {
        font-size: 1.125rem;
    }
    
    .site-logo img {
        max-height: 35px;
    }
    
    /* Resource Cards */
    .resource-card .resource-image {
        height: 180px;
    }
    
    /* Modal */
    .mobile-menu-panel {
        width: 85%;
    }
    
    /* Pagination */
    .pagination {
        gap: 3px;
    }
    
    .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

/* ============================================================
   LANDSCAPE ORIENTATION
   ============================================================ */

@media (max-width: 768px) and (orientation: landscape) {
    
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-section .hero-content {
        flex-direction: row;
        text-align: left;
    }
    
    .hero-section .hero-image {
        margin-top: 0;
        width: 40%;
    }
    
    .hero-section .hero-text {
        width: 55%;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
    
    /* Hide non-essential elements */
    .site-header,
    .site-footer,
    .sidebar,
    .comments-section,
    .social-share,
    .related-resources,
    .pagination-wrapper {
        display: none !important;
    }
    
    /* Ensure content is readable */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .site-main {
        padding: 0;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    img {
        max-width: 100% !important;
    }
    
    /* Ensure links show URLs */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        font-weight: normal;
    }
    
    /* Don't show URLs for internal links */
    a[href^="/"]:after,
    a[href^="#"]:after {
        content: "";
    }
}