/* ==========================================
   Polkadot Wallets - Responsive Styles
   ========================================== */

/* Large Desktops */
@media screen and (max-width: 1400px) {
    .container {
        max-width: 1100px;
    }
}

/* Laptops */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero .container {
        gap: 40px;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .footer-top {
        gap: 40px;
    }
}

/* Tablets */
@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav a {
        padding: 12px 0;
        font-size: 1.125rem;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 400px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .contact-card {
        flex: 1;
        min-width: 200px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small Tablets & Large Phones */
@media screen and (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 16px;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .wallets-grid {
        grid-template-columns: 1fr;
    }
    
    .wallet-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 32px;
    }
    
    .compare-table-wrapper {
        margin: 0 -16px;
        border-radius: 0;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 0.9375rem;
    }
    
    .faq-answer p {
        padding: 0 20px 20px;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .contact-card {
        min-width: auto;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        flex-direction: column;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .modal {
        width: 95%;
        margin: 16px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* Mobile Phones */
@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .header .container {
        height: 70px;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo img {
        height: 32px;
    }
    
    .hero {
        padding: 90px 0 40px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .hero-image img {
        max-width: 280px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-badge {
        font-size: 0.75rem;
    }
    
    .wallet-card {
        padding: 24px;
    }
    
    .wallet-icon {
        width: 48px;
        height: 48px;
    }
    
    .btn-large {
        padding: 14px 24px;
    }
    
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
    
    .legal-content {
        padding: 40px 16px;
    }
    
    .legal-content h2 {
        font-size: 1.25rem;
        margin: 32px 0 12px;
        padding-top: 16px;
    }
}

/* Very Small Phones */
@media screen and (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-badge {
        font-size: 0.6875rem;
    }
    
    .wallet-tags {
        gap: 4px;
    }
    
    .tag {
        font-size: 0.6875rem;
        padding: 3px 8px;
    }
}

/* Landscape Mode for Phones */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
    }
    
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-image {
        order: 0;
    }
    
    .hero-image img {
        max-width: 250px;
    }
}

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .modal-overlay,
    .back-to-top,
    .hero-bg,
    .social-links,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        padding-top: 0;
        min-height: auto;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .wallet-card,
    .feature-card,
    .faq-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gradient-orb {
        animation: none;
    }
    
    .animate-float {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #D60070;
        --gray-700: #333;
        --gray-600: #444;
    }
    
    .wallet-card,
    .feature-card,
    .faq-item {
        border-width: 2px;
    }
}

/* Dark Mode (optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable automatic dark mode
    :root {
        --background: #0f0f0f;
        --white: #1a1a1a;
        --dark: #ffffff;
        --gray-100: #2a2a2a;
        --gray-200: #3a3a3a;
        --gray-300: #4a4a4a;
        --gray-700: #b0b0b0;
        --card-bg: #1a1a1a;
    }
    
    .header {
        background: rgba(15, 15, 15, 0.95);
    }
    */
}
