/* Updated Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
}

.dice {
    position: relative;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 4px;
    transform: rotate3d(1, 1, 0, 30deg);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    animation: dice-glow 3s ease-in-out infinite alternate;
}

.dice::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow:
        -6px -6px 0 white,
        6px 6px 0 white;
}

.dice:nth-child(2) {
    transform: rotate3d(1, -1, 0, 20deg) translateX(-2px);
    background: var(--gradient-secondary);
    animation-delay: 0.5s;
}

.dice:nth-child(2)::before {
    box-shadow:
        -5px -5px 0 white,
        0px 0px 0 white,
        5px 5px 0 white,
        -5px 5px 0 white,
        5px -5px 0 white;
}

@keyframes dice-glow {
    0% {
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    100% {
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.6);
    }
}

/* Animated logo icon for footer */
.footer-logo-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
}

.footer-dice {
    width: 16px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 3px;
    position: relative;
    transform: rotate3d(1, 1, 0, 25deg);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
    animation: footer-dice-rotate 4s linear infinite;
}

.footer-dice::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow:
        -4px -4px 0 white,
        4px 4px 0 white;
}

@keyframes footer-dice-rotate {
    0% { transform: rotate3d(1, 1, 0, 25deg); }
    25% { transform: rotate3d(0, 1, 1, 25deg); }
    50% { transform: rotate3d(-1, 1, 0, 25deg); }
    75% { transform: rotate3d(1, 0, 1, 25deg); }
    100% { transform: rotate3d(1, 1, 0, 25deg); }
}

/* =============================================================================
   MOBILE OPTIMIZATION - Responsive Design for All Devices
   ============================================================================= */

/* Large tablets and small desktops (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .casinos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .games-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    /* Header and Navigation */
    .header {
        padding: 12px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .logo {
        justify-content: center;
        gap: 8px;
    }

    .logo-text {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .dice {
        width: 18px;
        height: 18px;
    }

    .dice::before {
        width: 3px;
        height: 3px;
        box-shadow:
            -5px -5px 0 white,
            5px 5px 0 white;
    }

    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }

    /* Hero Section */
    .hero {
        padding: 80px 0;
        min-height: 60vh;
    }

    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 16px;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .hero-content {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .compliance-notice {
        padding: 16px;
        margin-top: 24px;
        border-radius: 12px;
    }

    .compliance-notice p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Casino Cards */
    .casinos-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .casino-card {
        padding: 24px;
        border-radius: 20px;
    }

    .casino-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        margin-bottom: 20px;
    }

    .casino-logo {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }

    .casino-name {
        font-size: 1.3rem;
    }

    .casino-bonus h4 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .casino-features li {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .casino-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .casino-rating {
        text-align: center;
        padding-top: 16px;
    }

    .rating-number {
        font-size: 1.8rem;
    }

    .casino-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .view-more-btn, .visit-btn {
        padding: 14px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    /* Games Section */
    .games-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .game-card {
        padding: 24px;
    }

    .game-title {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }

    .game-description, .game-info {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* About Section */
    .about-section {
        padding: 60px 0;
    }

    .about-title {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }

    .about-subtitle {
        font-size: 1.2rem;
        margin-bottom: 24px;
    }

    .neon-slot-machine {
        width: 80px;
        height: 80px;
        margin-bottom: 32px;
    }

    .slot-display {
        font-size: 1.5rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial {
        padding: 20px;
    }

    /* FAQ Section */
    .faq-item {
        margin-bottom: 16px;
    }

    .faq-question {
        padding: 16px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 16px;
    }

    .faq-answer p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Contact Form */
    .contact-form {
        padding: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .form-group input, .form-group textarea {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 12px;
    }

    .contact-submit {
        padding: 16px 32px;
        font-size: 1rem;
        border-radius: 12px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .footer-sections {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: left;
    }

    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .footer-section p, .footer-section li {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .responsible-footer {
        padding: 24px 0;
    }

    .responsible-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .help-organizations {
        gap: 12px;
    }

    .help-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    /* Header */
    .header {
        padding: 10px 0;
    }

    .logo {
        gap: 6px;
    }

    .logo-text {
        font-size: 18px;
        letter-spacing: 0.8px;
    }

    .dice {
        width: 14px;
        height: 14px;
    }

    .dice::before {
        width: 2px;
        height: 2px;
        box-shadow:
            -3px -3px 0 white,
            3px 3px 0 white;
    }

    .nav {
        gap: 8px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 13px;
        border-radius: 6px;
    }

    /* Hero Section */
    .hero {
        padding: 60px 0;
        min-height: 50vh;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .hero-content {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .compliance-notice {
        padding: 12px;
        margin-top: 20px;
    }

    .compliance-notice p {
        font-size: 0.85rem;
    }

    /* Casino Cards */
    .casino-card {
        padding: 20px;
        border-radius: 16px;
    }

    .casino-logo {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }

    .casino-name {
        font-size: 1.2rem;
    }

    .casino-bonus h4 {
        font-size: 1rem;
    }

    .casino-features li {
        font-size: 0.85rem;
    }

    .casino-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat {
        flex-direction: row;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    }

    .stat:last-child {
        border-bottom: none;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .stat-value {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .rating-number {
        font-size: 1.6rem;
    }

    .rating-stars {
        font-size: 1rem;
    }

    .view-more-btn, .visit-btn {
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Games Section */
    .game-card {
        padding: 20px;
    }

    .game-number {
        font-size: 1.5rem;
    }

    .game-icon {
        font-size: 1.8rem;
    }

    .game-title {
        font-size: 1.4rem;
    }

    .game-description, .game-info {
        font-size: 0.9rem;
    }

    /* About Section */
    .about-title {
        font-size: 1.8rem;
    }

    .about-subtitle {
        font-size: 1.1rem;
    }

    .neon-slot-machine {
        width: 60px;
        height: 60px;
        margin-bottom: 24px;
    }

    .slot-display {
        font-size: 1.2rem;
    }

    /* FAQ */
    .faq-title {
        font-size: 1.8rem;
        margin-bottom: 24px;
    }

    .faq-question {
        padding: 12px;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 12px;
    }

    .faq-icon {
        font-size: 1rem;
    }

    /* Contact */
    .contact-title {
        font-size: 1.8rem;
    }

    .contact-subtitle {
        font-size: 1.1rem;
        margin-bottom: 24px;
    }

    .form-group input, .form-group textarea {
        padding: 12px;
        border-radius: 10px;
    }

    .contact-submit {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer-brand {
        text-align: center;
    }

    .footer-logo-text {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p, .footer-section li {
        font-size: 0.85rem;
    }

    .responsible-content {
        gap: 12px;
    }

    .age-badge-footer {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .help-organizations {
        flex-wrap: wrap;
        justify-content: center;
    }

    .help-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-content {
        padding: 20px 12px;
    }

    .casino-card {
        padding: 16px;
    }

    .game-card {
        padding: 16px;
    }

    .about-title {
        font-size: 1.6rem;
    }

    .contact-title, .faq-title {
        font-size: 1.6rem;
    }

    .neon-slot-machine {
        width: 50px;
        height: 50px;
    }

    .slot-display {
        font-size: 1rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .hero-content {
        padding: 20px;
    }

    .compliance-notice {
        margin-top: 16px;
        padding: 10px;
    }
}

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

    .logo-text {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
