/* Responsive Design for Pin Up Casino */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 84px;
    }
    
    .games-row {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .slots-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .nav-list {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 64px;
    }
    
    .left-sidebar {
        left: 10px;
    }
    
    .sidebar-btn {
        min-width: 160px;
        font-size: 12px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header adjustments */
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    /* Hero section */
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .bonus-amount {
        font-size: 24px;
    }
    
    /* Hide left sidebar on tablet */
    .left-sidebar {
        display: none;
    }
    
    /* Games section */
    .games-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .slots-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .game-card h3,
    .slot-card h4 {
        font-size: 12px;
        padding: 10px;
    }
    
    /* Info table */
    .info-table td {
        padding: 15px;
    }
    
    .info-table td:first-child {
        width: 150px;
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    /* Header */
    .header-content {
        padding: 12px 0;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-line {
        height: 2px;
    }
    
    /* Hide header buttons on mobile */
    .header-actions {
        display: none;
    }
    
    /* Hero section */
    .hero {
        min-height: 500px;
        padding: 40px 0;
    }
    
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .bonus-badge {
        padding: 15px;
    }
    
    .bonus-amount {
        font-size: 20px;
    }
    
    .btn-hero-register {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Games section */
    .games-section {
        padding: 40px 0;
    }
    
    .games-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .game-card img,
    .slot-card img {
        height: 100px;
        object-fit: contain;
        background: #1a1a1a;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    /* Casino info */
    .casino-info {
        padding: 40px 0;
    }
    
    .casino-info h2 {
        font-size: 24px;
    }
    
    .casino-info p {
        font-size: 14px;
    }
    
    .info-table {
        overflow-x: auto;
    }
    
    .info-table td {
        padding: 12px;
        font-size: 14px;
    }
    
    .info-table td:first-child {
        width: 120px;
        font-size: 13px;
    }
    
    /* Additional content */
    .additional-content {
        padding: 40px 0;
    }
    
    .content-section h3 {
        font-size: 20px;
    }
    
    .content-section p {
        font-size: 14px;
    }
    
    /* Modal adjustments */
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 14px;
    }
}

/* Mobile Small */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    /* Header buttons are already hidden on mobile */
    
    /* Hero section */
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        padding: 4px 12px;
    }
    
    .bonus-badge {
        padding: 12px;
    }
    
    .bonus-text {
        font-size: 12px;
    }
    
    .bonus-amount {
        font-size: 18px;
    }
    
    .btn-hero-register {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    /* Games section */
    .games-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .game-card img,
    .slot-card img {
        height: 90px;
        object-fit: contain;
        background: #1a1a1a;
    }
    
    .game-card h3,
    .slot-card h4 {
        font-size: 11px;
        padding: 8px;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    /* Casino info */
    .casino-info h2 {
        font-size: 20px;
    }
    
    .casino-info p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .info-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .info-table td:first-child {
        width: 100px;
        font-size: 11px;
    }
    
    /* Content sections */
    .content-section h3 {
        font-size: 18px;
    }
    
    .content-section p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    /* Modal */
    .modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input {
        padding: 10px;
        font-size: 13px;
    }
    
    .checkbox-group label {
        font-size: 12px;
    }
    
    .btn-register-submit,
    .btn-login-submit {
        padding: 12px;
        font-size: 14px;
    }
}

/* Mobile Navigation Menu */
@media (max-width: 991px) {
    .main-nav.mobile-active {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--dark-bg);
        border-top: 1px solid var(--border-color);
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition: all 0.3s ease;
        z-index: 999;
        margin: 0;
    }
    
    .main-nav.mobile-active .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .main-nav.mobile-active .nav-link {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 16px;
    }
    
    .main-nav.mobile-active .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Mobile menu toggle animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Sticky Mobile Buttons */
/* Hide sticky buttons on desktop */
.mobile-sticky-buttons {
    display: none;
}

@media (max-width: 767px) {
    /* Hide header buttons on mobile */
    .header-actions {
        display: none;
    }
    
    /* Show sticky buttons on mobile */
    .mobile-sticky-buttons {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        border-top: 1px solid var(--border-color);
        padding: 10px 15px;
        z-index: 1001;
        gap: 10px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-sticky-buttons .btn {
        flex: 1;
        padding: 14px 20px;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-radius: 8px;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    .mobile-sticky-buttons .btn-login {
        background: var(--gradient-green);
        color: white;
    }
    
    .mobile-sticky-buttons .btn-register {
        background: var(--gradient-red);
        color: white;
    }
    
    .mobile-sticky-buttons .btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-medium);
    }
    
    /* Add bottom padding to main content to avoid overlap with sticky buttons */
    .main-content {
        padding-bottom: 80px;
    }
    
    /* Ensure footer doesn't overlap with sticky buttons */
    .footer {
        margin-bottom: 80px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .bonus-badge {
        padding: 10px;
    }
    
    .bonus-amount {
        font-size: 16px;
    }
}

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

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .bonus-badge {
        animation: none;
    }
}

/* Dark mode support (if system preference) */
@media (prefers-color-scheme: dark) {
    /* Already using dark theme, but can add specific adjustments if needed */
}

/* Print styles */
@media print {
    .header,
    .left-sidebar,
    .modal,
    .mobile-sticky-buttons {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding-bottom: 0;
    }
    
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}