/* Responsive Styles for Alexander Casino */

/* Large screens (1024px and up) */
@media (min-width: 1024px) {
    .hero-crown {
        display: block;
    }
    
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .navbar-nav {
        gap: 0.75rem;
        max-width: none;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Medium screens (768px to 1023px) */
@media (max-width: 1023px) {
    .main-wrapper {
        margin-left: 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-crown {
        display: none;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* Tablet styles (768px to 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .info-content {
        gap: 3rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small tablets and large phones (480px to 767px) */
@media (max-width: 767px) {
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(0, 46, 60, 0.98);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--box-shadow-lg);
        gap: 0.5rem;
        border-top: 1px solid var(--border-color);
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .auth-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section {
        min-height: 400px;
    }
    
    .hero-content {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .games-section {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-nav-menu {
        gap: 1rem;
        padding: 0.75rem 0;
    }
    
    .hero-nav-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .info-section {
        padding: 3rem 0;
    }
    
    .info-content {
        gap: 2rem;
    }
    
    .info-block h2 {
        font-size: 1.5rem;
    }
    
    .info-block p {
        font-size: 1rem;
    }
    
    .faq-section {
        padding: 3rem 0;
    }
    
    .faq-section h2 {
        font-size: 1.875rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Mobile styles (up to 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        height: 3.5rem;
    }
    
    .main-content {
        margin-top: 3.5rem;
    }
    
    .sidebar {
        top: 3.5rem;
        width: 100%;
        transform: translateX(-100%);
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .hero-section {
        min-height: 350px;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .game-card {
        border-radius: 0.375rem;
    }
    
    .game-info {
        padding: 0.5rem;
    }
    
    .game-title {
        font-size: 0.75rem;
    }
    
    .game-category {
        font-size: 0.625rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .games-section {
        padding: 1rem 0;
    }
    
    .view-all-section {
        padding: 1.5rem 0;
    }
    
    .hero-nav-menu {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .hero-nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .info-section {
        padding: 2rem 0;
    }
    
    .info-content {
        gap: 1.5rem;
    }
    
    .info-block h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .info-block p {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    .faq-section {
        padding: 2rem 0;
    }
    
    .faq-section h2 {
        font-size: 1.5rem;
    }
    
    .faq-question {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .faq-answer p {
        padding: 0 1rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-nav {
        gap: 0.375rem;
    }
    
    .footer-nav a {
        font-size: 0.875rem;
    }
    
    .footer-bottom {
        padding-top: 0.75rem;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* Extra small screens (up to 359px) */
@media (max-width: 359px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .game-image {
        font-size: 3rem;
    }
    
    .hero-crown {
        font-size: 10rem;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: 300px;
    }
    
    .hero-content {
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .sidebar {
        width: 16rem;
    }
}

/* Print styles */
@media print {
    .header,
    .sidebar,
    .hero-section,
    .footer {
        display: none;
    }
    
    .main-wrapper {
        margin-left: 0;
        margin-top: 0;
    }
    
    .games-section {
        padding: 1rem 0;
    }
    
    .game-card {
        break-inside: avoid;
    }
}

/* Hover states for touch devices */
@media (hover: none) and (pointer: coarse) {
    .game-card:hover {
        transform: none;
    }
    
    .game-overlay {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.3);
    }
    
    .game-play-btn {
        transform: translateY(0);
    }
}

/* Responsive tables */
@media (max-width: 767px) {
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    table th,
    table td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .info-block-with-image {
        grid-template-columns: 1fr !important;
    }
    
    .info-block-with-image .info-block-image {
        order: 0 !important;
        max-width: 100%;
        margin: 1rem 0;
    }
}

@media (max-width: 479px) {
    .info-block ul li,
    .info-block ol li {
        padding: 0.5rem 0 0.5rem 1.75rem;
        font-size: 0.875rem;
    }
    
    .info-block ul li::before {
        top: 0.5rem;
        font-size: 1rem;
    }
    
    .info-block ol li::before {
        top: 0.5rem;
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.625rem;
    }
    
    blockquote {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    blockquote::before {
        font-size: 3rem;
        top: -0.25rem;
        left: 0.75rem;
    }
    
    table th,
    table td {
        padding: 0.375rem 0.25rem;
        font-size: 0.625rem;
    }
}

/* Content pages responsive */
@media (max-width: 767px) {
    .content-header h1 {
        font-size: 2rem;
    }
    
    .content-subtitle {
        font-size: 1rem;
    }
    
    .support-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .support-method {
        padding: 1.5rem;
    }
    
    .method-icon {
        font-size: 2.5rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .help-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .org-logos {
        gap: 1rem;
    }
    
    .org-logo {
        height: 35px;
        max-width: 70px;
    }
}

@media (max-width: 479px) {
    .content-page {
        padding: 1rem 0;
    }
    
    .content-header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
    
    .content-header h1 {
        font-size: 1.75rem;
    }
    
    .content-section {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .support-method {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .footer-organizations {
        padding: 1rem 0;
    }
    
    .footer-organizations h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* Author Block Responsive Styles */
@media (max-width: 768px) {
    .author-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .author-image {
        width: 120px;
        height: 120px;
    }
    
    .author-name {
        font-size: 1.5rem;
    }
    
    .author-title {
        font-size: 1rem;
    }
    
    .author-bio {
        font-size: 0.95rem;
    }
    
    .btn-outline {
        align-self: center;
    }
}

@media (max-width: 1023px) {
    .author-profile {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .author-profile .author-image {
        width: 200px;
        height: 200px;
    }
    
    .experience-item {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .experience-year {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 479px) {
    .author-block {
        margin: 2rem 0;
        padding: 1rem 0;
    }
    
    .author-card {
        padding: 1.5rem;
    }
    
    .author-image {
        width: 100px;
        height: 100px;
    }
    
    .author-name {
        font-size: 1.25rem;
    }
    
    .author-title {
        font-size: 0.9rem;
    }
    
    .author-bio {
        font-size: 0.9rem;
    }
    
    .author-profile .author-image {
        width: 150px;
        height: 150px;
    }
    
    .author-info h2 {
        font-size: 2rem;
    }
    
    .author-info .author-title {
        font-size: 1.125rem;
    }
    
    .author-description p {
        font-size: 1rem;
    }
}

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