/* DARKSWAP Holder Crates - Responsive Styles */

/* ===================================
   TABLET & BELOW (max-width: 1024px)
   =================================== */

@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
        --spacing-3xl: 4rem;
    }
    
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Navigation */
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .mobile-menu.active {
        display: flex;
        flex-direction: column;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-factors {
        flex-direction: column;
        align-items: stretch;
    }
    
    .factor {
        width: 100%;
    }
    
    .factor-operator {
        text-align: center;
        margin: 0.5rem 0;
    }
    
    .factor-result {
        margin-left: 0;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    /* Crate Connection */
    .crate-connection {
        flex-direction: column;
        text-align: center;
    }
    
    /* Preview */
    .preview-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* Content Split */
    .content-split {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .content-stats {
        flex-wrap: wrap;
    }
    
    /* Tiers Grid */
    .tiers-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    /* FAQ Grid */
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-disclaimer {
        text-align: left;
    }
}

/* ===================================
   MOBILE (max-width: 768px)
   =================================== */

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 3rem;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.375rem;
    }
    
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Navigation */
    .nav-container {
        height: 64px;
        padding: 0 1rem;
    }
    
    .nav-brand {
        gap: 0.5rem;
    }
    
    .nav-logo {
        width: 28px;
        height: 28px;
    }
    
    .nav-title {
        font-size: 1rem;
    }
    
    .nav-subtitle {
        display: none;
    }
    
    .nav-separator {
        display: none;
    }
    
    #nav-cta {
        display: none;
    }
    
    .mobile-menu {
        padding: var(--spacing-md) 1rem;
    }
    
    /* Hero */
    .hero {
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-factors {
        padding: var(--spacing-md);
    }
    
    .factor-label {
        font-size: 0.6875rem;
    }
    
    .factor-value {
        font-size: 0.875rem;
    }
    
    .hero-note {
        text-align: center;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 1.25rem;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-xl {
        padding: 1.125rem 2rem;
        font-size: 1rem;
    }
    
    /* Crate Preview */
    .crate-preview {
        max-width: 320px;
    }
    
    /* Crate Connection */
    .crate-connection {
        padding: var(--spacing-lg);
    }
    
    .connection-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .connection-pulse {
        width: 100px;
        height: 100px;
    }
    
    .connection-title {
        font-size: 1.5rem;
    }
    
    /* Development Grid */
    .development-grid {
        grid-template-columns: 1fr;
    }
    
    .development-card {
        padding: var(--spacing-md);
    }
    
    .development-number {
        font-size: 1.5rem;
    }
    
    /* Interactive Preview */
    .preview-crate {
        max-width: 320px;
    }
    
    .preview-tier-badge {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
    }
    
    .control-label {
        font-size: 0.875rem;
    }
    
    .preview-note {
        padding: var(--spacing-sm);
        font-size: 0.8125rem;
    }
    
    /* Tiers Grid */
    .tiers-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .tier-card {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .tier-name {
        font-size: 1.25rem;
    }
    
    .tier-description {
        font-size: 0.875rem;
    }
    
    /* Content Stats */
    .content-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    /* Visual Grid */
    .visual-grid {
        grid-template-columns: 1fr;
    }
    
    /* About Section */
    .about-text {
        font-size: 1rem;
    }
    
    .about-links {
        flex-direction: column;
    }
    
    .about-link {
        width: 100%;
        justify-content: space-between;
    }
    
    .token-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .token-stat {
        padding: var(--spacing-md);
        background-color: var(--color-bg-card);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
    }
    
    /* Method Timeline */
    .method-timeline {
        gap: var(--spacing-lg);
    }
    
    .method-step {
        grid-template-columns: 60px 1fr;
        gap: var(--spacing-md);
    }
    
    .method-step:not(:last-child)::after {
        left: 30px;
        top: 60px;
        bottom: -32px;
    }
    
    .method-step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .method-step-title {
        font-size: 1.125rem;
    }
    
    .method-step-description {
        font-size: 0.9375rem;
    }
    
    /* FAQ */
    .faq-item {
        padding: var(--spacing-md);
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    .faq-answer {
        font-size: 0.9375rem;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }
    
    .footer-content {
        gap: var(--spacing-lg);
    }
    
    .footer-brand {
        gap: var(--spacing-sm);
    }
    
    .footer-logo {
        width: 40px;
        height: 40px;
    }
    
    .footer-title {
        font-size: 1.125rem;
    }
    
    .footer-subtitle {
        font-size: 0.875rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-bottom {
        padding-top: var(--spacing-lg);
        gap: var(--spacing-md);
    }
    
    .footer-contract {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .footer-contract-address {
        font-size: 0.75rem;
        word-break: break-all;
    }
    
    .footer-disclaimer {
        font-size: 0.8125rem;
    }
}

/* ===================================
   SMALL MOBILE (max-width: 480px)
   =================================== */

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
        --spacing-3xl: 3rem;
    }
    
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 0.9375rem;
    }
    
    .hero-label {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }
    
    .hero-factors {
        padding: var(--spacing-sm);
        gap: var(--spacing-xs);
    }
    
    .factor {
        gap: 0.5rem;
    }
    
    .factor-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .factor-label {
        font-size: 0.625rem;
    }
    
    .factor-value {
        font-size: 0.8125rem;
    }
    
    /* Buttons */
    .btn {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-xl {
        padding: 1rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    /* Crate Preview */
    .crate-preview {
        max-width: 280px;
    }
    
    .crate-status {
        font-size: 0.8125rem;
        padding: 0.625rem 1rem;
    }
    
    .crate-label {
        font-size: 0.6875rem;
    }
    
    /* Crate Connection */
    .crate-connection {
        padding: var(--spacing-md);
        gap: var(--spacing-lg);
    }
    
    .connection-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .connection-pulse {
        width: 80px;
        height: 80px;
    }
    
    .connection-title {
        font-size: 1.25rem;
    }
    
    .connection-description {
        font-size: 0.9375rem;
    }
    
    .connection-note {
        font-size: 0.8125rem;
    }
    
    /* Development Cards */
    .development-icon svg {
        width: 40px;
        height: 40px;
    }
    
    /* Preview */
    .preview-container {
        padding: var(--spacing-md);
    }
    
    .preview-crate {
        max-width: 280px;
    }
    
    .preview-tier-badge {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        bottom: 1rem;
    }
    
    .control-label svg {
        width: 18px;
        height: 18px;
    }
    
    .slider {
        height: 8px;
    }
    
    .slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    
    .slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }
    
    /* Tiers */
    .tier-card {
        padding: var(--spacing-md);
    }
    
    .tier-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .tier-name {
        font-size: 1.125rem;
    }
    
    .tier-description {
        font-size: 0.8125rem;
    }
    
    /* Method Timeline */
    .method-step {
        grid-template-columns: 50px 1fr;
        gap: var(--spacing-sm);
    }
    
    .method-step:not(:last-child)::after {
        left: 25px;
        top: 50px;
        bottom: -24px;
    }
    
    .method-step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .method-step-title {
        font-size: 1rem;
    }
    
    .method-step-description {
        font-size: 0.875rem;
    }
    
    /* About */
    .about-features {
        padding: var(--spacing-md);
    }
    
    .feature-item {
        font-size: 0.875rem;
    }
    
    .token-info {
        padding: var(--spacing-md);
    }
    
    .token-stat-value {
        font-size: 1.125rem;
    }
    
    /* CTA */
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-description {
        font-size: 0.9375rem;
    }
    
    /* Footer */
    .footer-links-title {
        font-size: 0.8125rem;
    }
    
    .footer-link {
        font-size: 0.875rem;
    }
}

/* ===================================
   LARGE DESKTOP (min-width: 1440px)
   =================================== */

@media (min-width: 1440px) {
    :root {
        --container-max: 1320px;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.25rem;
    }
    
    .section-description {
        font-size: 1.25rem;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .nav,
    .mobile-menu,
    .btn,
    .footer,
    .cta-content,
    .preview-controls {
        display: none !important;
    }
    
    .hero,
    .section {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }
}

/* ===================================
   TOUCH DEVICE OPTIMIZATIONS
   =================================== */

@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn,
    .nav-link,
    .mobile-menu-link,
    .footer-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .development-card:hover,
    .tier-card:hover,
    .faq-item:hover,
    .visual-card:hover {
        transform: none;
    }
    
    /* Disable animations that might cause issues */
    .connection-pulse {
        animation: none;
    }
}

/* ===================================
   HIGH CONTRAST MODE
   =================================== */

@media (prefers-contrast: high) {
    :root {
        --color-border: #4a4a4a;
        --color-text-secondary: #d0d0d0;
    }
    
    .btn-primary {
        border-width: 3px;
    }
    
    .btn-secondary {
        border-width: 3px;
    }
}

/* ===================================
   LANDSCAPE MOBILE
   =================================== */

@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
}
