/* Yamata: Eightfold Wardens - Responsive Styles */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-stats {
        gap: 4rem;
    }
    
    .utility-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (1200px to 1399px) */
@media (max-width: 1399px) {
    .hero-stats {
        gap: 2.5rem;
    }
}

/* Tablet Large (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .wardens-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .utility-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reward-stats {
        gap: 2rem;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    :root {
        font-size: 15px;
    }
    
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        min-height: 70px;
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    
    .mode-toggle-container {
        order: 2;
        margin: 0;
    }
    
    .mode-text {
        font-size: 0.8rem;
    }
    
    .mode-slider {
        width: 40px;
        height: 20px;
    }
    
    .mode-slider::before {
        width: 16px;
        height: 16px;
        top: 1px;
        left: 1px;
    }
    
    .mode-switch:checked + .mode-label .mode-slider::before {
        transform: translateX(20px);
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 0, 110, 0.2);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        order: 3;
        width: 100%;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero {
        height: 100vh;
        padding-top: 120px;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .clans-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .wardens-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .utility-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .reward-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-brand {
        max-width: none;
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) {
    :root {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .title-main {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .title-sub {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .clan-card,
    .info-card,
    .utility-card {
        padding: 1.5rem;
    }
    
    .mint-card {
        padding: 2rem 1.5rem;
    }
    
    .reward-values {
        padding: 2rem 1.5rem;
    }
    
    .reward-stat {
        min-width: 120px;
    }
    
    .reward-amount {
        font-size: 1.5rem;
    }
    
    .networks {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .network-separator {
        display: none;
    }
    
    .faq-question {
        padding: 1rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem 1rem;
    }
}

/* Mobile Medium (480px to 575px) */
@media (max-width: 575px) {
    .clans-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-scroll {
        bottom: 1rem;
    }
    
    .reward-values {
        padding: 1.5rem 1rem;
    }
    
    .reward-title {
        font-size: 1.3rem;
    }
    
    .calculator-link {
        display: block;
        margin-top: 0.5rem;
    }
}

/* Mobile Small (up to 479px) */
@media (max-width: 479px) {
    :root {
        font-size: 13px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-container {
        padding: 0 0.75rem;
        min-height: 60px;
    }
    
    .nav-menu {
        top: 80px;
        padding: 1rem;
    }
    
    .mode-toggle-container {
        flex: 1;
        justify-content: center;
    }
    
    .mode-text {
        font-size: 0.7rem;
        min-width: 35px;
    }
    
    .mode-slider {
        width: 32px;
        height: 16px;
        border-radius: 8px;
    }
    
    .mode-slider::before {
        width: 12px;
        height: 12px;
        top: 1px;
        left: 1px;
    }
    
    .mode-switch:checked + .mode-label .mode-slider::before {
        transform: translateX(16px);
    }
    
    .logo-img {
        height: 32px;
    }
    
    .nav-toggle {
        gap: 3px;
    }
    
    .nav-toggle .bar {
        width: 20px;
        height: 2px;
    }
    
    .hero {
        padding-top: 60px;
    }
    
    .hero-content {
        padding: 0.75rem;
    }
    
    .title-main {
        font-size: clamp(2rem, 12vw, 3.5rem);
    }
    
    .title-sub {
        font-size: clamp(1rem, 6vw, 1.5rem);
        letter-spacing: 0.1em;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .lore-story h3 {
        font-size: 1.5rem;
    }
    
    .lore-story p {
        font-size: 1rem;
    }
    
    .clan-card,
    .info-card,
    .utility-card {
        padding: 1.25rem;
    }
    
    .clan-icon,
    .card-icon {
        font-size: 2rem;
    }
    
    .clan-card h4,
    .info-card h3,
    .card-header h3 {
        font-size: 1.2rem;
    }
    
    .mint-card {
        padding: 1.5rem 1rem;
    }
    
    .mint-card h3 {
        font-size: 1.5rem;
    }
    
    .detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .networks {
        align-items: flex-start;
    }
    
    .reward-values {
        padding: 1.25rem 0.75rem;
    }
    
    .reward-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .reward-amount {
        font-size: 1.3rem;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .card-header i {
        font-size: 1.75rem;
    }
    
    .faq-question {
        padding: 0.875rem 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .faq-answer {
        padding: 0 1rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-logo {
        height: 32px;
    }
    
    .link-group h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .link-group a {
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-stats {
        gap: 5rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .reward-stats {
        gap: 4rem;
    }
    
    .reward-amount {
        font-size: 2.5rem;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-scroll {
        animation: none;
    }
    
    .loading-message i {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --yamata-dark: #000000;
        --yamata-white: #ffffff;
        --yamata-pink: #ff0080;
        --yamata-gray-light: #cccccc;
    }
    
    .btn-secondary {
        border-width: 3px;
    }
    
    .clan-card,
    .info-card,
    .utility-card,
    .faq-item {
        border-width: 2px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-scroll,
    .nav-toggle {
        display: none !important;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
    }
    
    .hero-bg {
        display: none;
    }
    
    .hero-content {
        color: #000;
    }
    
    section {
        padding: 1.5rem 0;
        page-break-inside: avoid;
    }
    
    .section-title {
        color: #000;
    }
    
    .btn {
        border: 2px solid #000;
        color: #000;
        background: none;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .title-main {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .title-sub {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
}