/* PGLucky88 Casino - Responsive Stylesheet */

/* Mobile First Approach - Base styles are for mobile */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        padding: 0 30px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-actions {
        flex-direction: row;
    }
    
    .floating-cards-container {
        gap: 1.5rem;
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .floating-card {
        min-width: 130px;
        padding: 1.2rem;
        flex: 1;
    }
    
    .brand-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .features-content {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    
    .features-grid {
        gap: 1.5rem;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
        justify-items: center;
        align-items: stretch;
        max-width: 1000px;
    }
    
    .feature-card {
        padding: 1.5rem;
        width: 100%;
        height: 100%;
        overflow: visible;
        min-height: 280px;
    }
    
    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        text-align: center;
        min-height: 2.4em;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .feature-card p {
        font-size: 0.85rem;
        text-align: center;
        line-height: 1.4;
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .registration-content {
        grid-template-columns: 2fr 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .cta-actions {
        flex-direction: row;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
}

/* Mobile Styles (max-width: 767px) */
@media (max-width: 767px) {
    /* Header Mobile */
    .header {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .header-actions .btn {
        width: 100%;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 3rem 0;
        min-height: auto;
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        order: 2;
    }
    
    .hero-visual {
        height: 400px;
        order: 1;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .floating-cards-container {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .floating-card {
        min-width: 100px;
        padding: 0.8rem;
        flex: 1;
        max-width: 120px;
    }
    
    .floating-card h4 {
        font-size: 0.9rem;
    }
    
    .floating-card p {
        font-size: 0.7rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    /* Brand Introduction Mobile */
    .brand-intro {
        margin: 1rem;
        padding: 3rem 0;
    }
    
    .brand-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .brand-text {
        padding: 2rem;
        transform: none;
    }
    
    .brand-image {
        transform: none;
    }
    
    /* Features Mobile */
    .features-content {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .features-grid {
        gap: 1rem;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
        justify-items: center;
        align-items: stretch;
        max-width: 100%;
        margin: 0 auto;
        overflow-x: auto;
    }
    
    
    .feature-card {
        margin: 0;
        border-radius: 12px;
        transform: none !important;
        text-align: center;
        padding: 1rem;
        width: 100%;
        height: 100%;
        overflow: visible;
        min-height: 250px;
        min-width: 200px;
    }
    
    .feature-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
        text-align: center;
        min-height: 2.2em;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .feature-card p {
        font-size: 0.75rem;
        text-align: center;
        line-height: 1.3;
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .feature-card::after {
        width: 30px;
        height: 30px;
        top: 15px;
        right: 15px;
    }
    
    .feature-card:hover {
        transform: translateY(-10px) scale(1.02) !important;
    }
    
    /* Registration Mobile */
    .registration-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .registration-text {
        padding: 2rem;
        transform: none;
    }
    
    .registration-actions {
        gap: 1rem;
    }
    
    .registration-actions::before {
        display: none;
    }
    
    .registration-actions {
        flex-direction: column;
    }
    
    .registration-actions .btn {
        width: 100%;
    }
    
    /* Advantages Mobile */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* CTA Mobile */
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* FAQ Mobile */
    .faq-item {
        margin: 0 1rem;
        border-radius: 15px;
        transform: none !important;
    }
    
    .faq-item:nth-child(odd),
    .faq-item:nth-child(even) {
        margin-left: 0;
        transform: none !important;
    }
    
    /* Typography Mobile */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    /* Spacing Mobile */
    .brand-intro,
    .platform-features,
    .registration-process,
    .advantages-security,
    .faq-section,
    .cta-section {
        padding: 2rem 0;
    }
}

/* Tablet Portrait (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .brand-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .registration-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .registration-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-actions,
    .registration-actions,
    .cta-actions,
    .breadcrumb {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3 {
        color: #000;
        page-break-after: avoid;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .hero-image img,
    .brand-image img,
    .feature-card img,
    .security-badge img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation Adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: 1rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .brand-intro,
    .platform-features,
    .registration-process,
    .advantages-security,
    .faq-section,
    .cta-section {
        padding: 1.5rem 0;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a202c;
        --text-color: #e2e8f0;
        --card-bg: #2d3748;
        --border-color: #4a5568;
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .header {
        background-color: var(--card-bg);
        border-bottom: 1px solid var(--border-color);
    }
    
    .brand-intro,
    .registration-process,
    .faq-section {
        background-color: var(--bg-color);
    }
    
    .platform-features,
    .advantages-security {
        background-color: var(--card-bg);
    }
    
    .feature-card,
    .advantage-item,
    .faq-item {
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
    }
    
    .footer {
        background-color: #1a202c;
    }
    
    .breadcrumb {
        background-color: var(--card-bg);
        border-bottom: 1px solid var(--border-color);
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .hero {
        background: #667eea;
    }
    
    .cta-section {
        background: #667eea;
    }
    
    .feature-card:hover {
        transform: none;
    }
}

/* Focus Visible for Better Keyboard Navigation */
@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .main-nav a {
        padding: 1rem 0.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .advantage-item {
        padding: 1.5rem;
    }
    
    .advantage-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .advantage-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .contact-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .error-icon {
        width: 100px;
        height: 100px;
    }
    
    .error-icon svg {
        width: 80px;
        height: 80px;
    }
}

/* Very Small Screens (320px and below) */
@media (max-width: 320px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .features-grid {
        gap: 0.5rem;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .feature-card {
        padding: 0.8rem;
        min-width: 180px;
        min-height: 220px;
    }
    
    .feature-card h3 {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        min-height: 2em;
    }
    
    .feature-card p {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .advantage-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.8rem;
    }
    
    .advantage-icon svg {
        width: 30px;
        height: 30px;
    }
}
