/* ========================================
   Advanced Responsive Design System
   Mobile-First Approach
======================================== */

/* ========================================
   Extra Small Mobile (280px - 319px)
======================================== */
@media screen and (max-width: 319px) {
  :root {
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
  }
  
  .hero-container {
    padding: var(--space-xs);
  }
  
  .content {
    padding: var(--space-sm);
    gap: var(--space-md);
    max-width: 98vw;
  }
  
  .logo-image {
    max-height: 60px;
    max-width: 160px;
  }
  
  .title {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }
  
  .cta-button {
    min-width: 200px;
    height: 45px;
    font-size: 0.85rem;
    padding: 0;
    background-image: url('../images/Button.png');
    background-size: 100% 100%;
    border: none;
    outline: none;
  }
  
  .hero-container::before,
  .hero-container::after {
    display: none;
  }
}

/* ========================================
   Small Mobile (320px - 374px)
======================================== */
@media screen and (min-width: 320px) and (max-width: 374px) {
  .content {
    padding: var(--space-sm);
    gap: var(--space-lg);
    max-width: 95vw;
  }
  
  .logo-image {
    max-height: 70px;
    max-width: 180px;
  }
  
  .title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
  }
  
  .cta-button {
    min-width: 220px;
    height: 50px;
    font-size: 0.9rem;
    padding: 0;
    background-image: url('../images/Button.png');
    background-size: 100% 100%;
    border: none;
    outline: none;
  }
  
  .hero-container::before,
  .hero-container::after {
    font-size: 2rem;
  }
}

/* ========================================
   Medium Mobile (375px - 414px)
======================================== */
@media screen and (min-width: 375px) and (max-width: 414px) {
  .content {
    gap: var(--space-xl);
    padding: var(--space-md);
  }
  
  .logo-image {
    max-height: 80px;
    max-width: 200px;
  }
  
  .title {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
  }
  
  .cta-button {
    min-width: 250px;
    height: 55px;
    font-size: 0.95rem;
    padding: 0 var(--space-lg);
    background-image: url('../images/Button.png');
    background-size: 100% 100%;
  }
}

/* ========================================
   Large Mobile (415px - 480px)
======================================== */
@media screen and (min-width: 415px) and (max-width: 480px) {
  .content {
    gap: var(--space-xl);
    padding: var(--space-md);
    max-width: 90vw;
  }
  
  .logo-image {
    max-height: 85px;
    max-width: 220px;
  }
  
  .title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    letter-spacing: 1.5px;
    margin-bottom: var(--space-md);
  }
  
  .cta-button {
    min-width: 270px;
    height: 60px;
    font-size: 1rem;
    padding: 0 var(--space-lg);
    background-image: url('../images/Button.png');
    background-size: 100% 100%;
  }
}

/* ========================================
   Small Tablet Portrait (481px - 600px)
======================================== */
@media screen and (min-width: 481px) and (max-width: 600px) {
  .content {
    gap: var(--space-2xl);
    padding: var(--space-lg);
    max-width: 85vw;
  }
  
  .logo-image {
    max-height: 95px;
    max-width: 250px;
  }
  
  .title {
    font-size: clamp(2.2rem, 4.5vw, 2.8rem);
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
  }
  
  .cta-button {
    min-width: 300px;
    height: 65px;
    font-size: 1.1rem;
    padding: 0 var(--space-xl);
    background-image: url('../images/Button.png');
    background-size: 100% 100%;
  }
}

/* ========================================
   Medium Tablet Portrait (601px - 767px)
======================================== */
@media screen and (min-width: 601px) and (max-width: 767px) {
  .content {
    gap: var(--space-2xl);
    padding: var(--space-lg);
    max-width: 80vw;
  }
  
  .logo-image {
    max-height: 100px;
    max-width: 280px;
  }
  
  .title {
    font-size: clamp(2.5rem, 4vw, 3.2rem);
    letter-spacing: 2px;
    margin-bottom: var(--space-lg);
  }
  
  .cta-button {
    min-width: 320px;
    height: 70px;
    font-size: 1.15rem;
    padding: 0 var(--space-xl);
    background-image: url('../images/Button.png');
    background-size: 100% 100%;
  }
}

/* ========================================
   Tablet Landscape (768px - 1023px)
======================================== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .content {
    gap: 3rem;
    padding: var(--space-xl);
    max-width: 75vw;
  }
  
  .logo-image {
    max-height: 110px;
    max-width: 320px;
  }
  
  .title {
    font-size: clamp(2.8rem, 3.5vw, 3.8rem);
    letter-spacing: 2.5px;
    margin-bottom: var(--space-lg);
  }
  
  .cta-button {
    min-width: 350px;
    height: 75px;
    font-size: 1.25rem;
    padding: 0 var(--space-2xl);
    background-image: url('../images/Button.png');
    background-size: 100% 100%;
  }
  
  .cta-button:hover {
    transform: scale(1.08);
  }
}

/* ========================================
   Small Desktop (1024px - 1199px)
======================================== */
@media screen and (min-width: 1024px) and (max-width: 1199px) {
  .content {
    gap: 3.5rem;
    padding: var(--space-2xl);
    max-width: 70vw;
  }
  
  .logo-image {
    max-height: 120px;
    max-width: 360px;
  }
  
  .title {
    font-size: clamp(3.2rem, 3vw, 4.2rem);
    letter-spacing: 3px;
    margin-bottom: var(--space-xl);
  }
  
  .cta-button {
    min-width: 380px;
    height: 80px;
    font-size: 1.3rem;
    padding: 0 var(--space-2xl);
    background-image: url('../images/Button.png');
    background-size: 100% 100%;
  }
  
  .content::before {
    content: '🎰';
    position: absolute;
    top: -50px;
    right: -100px;
    font-size: 2.5rem;
    color: var(--gold-primary);
    text-shadow: var(--glow-gold);
    animation: coinFloat 6s ease-in-out infinite;
    z-index: 5;
    pointer-events: none;
    animation-delay: 1s;
  }
  
  .content::after {
    content: '💎';
    position: absolute;
    bottom: -50px;
    left: -100px;
    font-size: 2.2rem;
    color: var(--gold-primary);
    text-shadow: var(--glow-gold);
    animation: sparkleFloat 7s ease-in-out infinite;
    z-index: 5;
    pointer-events: none;
    animation-delay: 3s;
  }
}

/* ========================================
   Medium Desktop (1200px - 1439px)
======================================== */
@media screen and (min-width: 1200px) and (max-width: 1439px) {
  .content {
    gap: 4rem;
    padding: var(--space-2xl);
    max-width: 65vw;
  }
  
  .logo-image {
    max-height: 130px;
    max-width: 400px;
  }
  
  .title {
    font-size: clamp(3.6rem, 2.8vw, 4.8rem);
    letter-spacing: 3px;
    margin-bottom: var(--space-xl);
  }
  
  .cta-button {
    min-width: 400px;
    height: 85px;
    font-size: 1.4rem;
    padding: 0 var(--space-2xl);
    background-image: url('../images/Button.png');
    background-size: 100% 100%;
  }
}

/* ========================================
   Large Desktop (1440px - 1679px)
======================================== */
@media screen and (min-width: 1440px) and (max-width: 1679px) {
  .content {
    gap: 4.5rem;
    padding: 3rem;
    max-width: 60vw;
  }
  
  .logo-image {
    max-height: 140px;
    max-width: 440px;
  }
  
  .title {
    font-size: clamp(4rem, 2.5vw, 5.2rem);
    letter-spacing: 4px;
    margin-bottom: 2.5rem;
  }
  
  .cta-button {
    min-width: 420px;
    height: 90px;
    font-size: 1.5rem;
    padding: 0 3rem;
    background-image: url('../images/Button.png');
    background-size: 100% 100%;
  }
  
  .hero-container::before {
    font-size: 2.5rem;
    top: 25%;
    left: 12%;
  }
  
  .hero-container::after {
    font-size: 2.5rem;
    bottom: 30%;
    right: 12%;
  }
}

/* ========================================
   Extra Large Desktop (1680px - 1919px)
======================================== */
@media screen and (min-width: 1680px) and (max-width: 1919px) {
  .content {
    gap: 5rem;
    padding: 3.5rem;
    max-width: 55vw;
  }
  
  .logo-image {
    max-height: 150px;
    max-width: 480px;
  }
  
  .title {
    font-size: clamp(4.5rem, 2.2vw, 5.8rem);
    letter-spacing: 4px;
    margin-bottom: 3rem;
  }
  
  .cta-button {
    min-width: 450px;
    height: 95px;
    font-size: 1.6rem;
    padding: 0 3.5rem;
    background-image: url('../images/Button.png');
    background-size: 100% 100%;
  }
  
  .hero-container::before,
  .hero-container::after {
    font-size: 3rem;
  }
}

/* ========================================
   Ultra Wide Desktop (1920px+)
======================================== */
@media screen and (min-width: 1920px) {
  .content {
    gap: 5.5rem;
    padding: 4rem;
    max-width: 50vw;
  }
  
  .logo-image {
    max-height: 160px;
    max-width: 520px;
  }
  
  .title {
    font-size: clamp(5rem, 2vw, 6.5rem);
    letter-spacing: 5px;
    margin-bottom: 3.5rem;
  }
  
  .cta-button {
    min-width: 480px;
    height: 100px;
    font-size: 1.7rem;
    padding: 0 4rem;
    background-image: url('../images/Button.png');
    background-size: 100% 100%;
  }
  
  .hero-container::before {
    content: '💎';
    top: 15%;
    left: 8%;
    font-size: 3.5rem;
  }
  
  .hero-container::after {
    content: '🎰';
    bottom: 20%;
    right: 8%;
    font-size: 3.5rem;
  }
}

/* ========================================
   Orientation-Specific Styles
======================================== */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .hero-container {
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) 0;
  }
  
  .content {
    gap: var(--space-md);
    padding: var(--space-sm);
    flex-direction: row;
    align-items: center;
    text-align: left;
    max-width: 90vw;
  }
  
  .branding-logo {
    margin-bottom: 0;
    margin-right: var(--space-lg);
  }
  
  .logo-image {
    max-height: 60px;
    max-width: 150px;
  }
  
  .title {
    font-size: clamp(1.5rem, 4vh, 2.5rem);
    margin-bottom: var(--space-xs);
    text-align: left;
  }
  
  .cta-button {
    min-width: 200px;
    height: 45px;
    font-size: 1rem;
    background-image: url('../images/Button.png');
    background-size: 100% 100%;
  }
  
  .hero-container::before,
  .hero-container::after,
  .content::before,
  .content::after {
    display: none;
  }
}

/* Portrait Tablets - Optimized */
@media screen and (orientation: portrait) and (min-width: 768px) and (max-width: 1024px) {
  .content {
    max-width: 70vw;
    gap: 3rem;
  }
  
  .title {
    font-size: clamp(3rem, 4vw, 4.5rem);
  }
  
  .cta-button {
    min-width: 360px;
    height: 75px;
    font-size: 1.3rem;
    background-image: url('../images/Button.png');
    background-size: 100% 100%;
  }
}

/* ========================================
   Device-Specific Optimizations
======================================== */

/* iPhone SE and similar small screens */
@media screen and (max-width: 375px) and (max-height: 667px) {
  .content {
    gap: var(--space-lg);
  }
  
  .logo-image {
    max-height: 70px;
  }
  
  .title {
    font-size: 1.6rem;
    line-height: 1.1;
  }
  
  .cta-button {
    min-width: 240px;
    height: 52px;
    font-size: 0.95rem;
    background-image: url('../images/Button.png');
    background-size: 100% 100%;
  }
}

/* iPad and similar tablets */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .content {
    gap: 3.5rem;
    max-width: 65vw;
  }
  
  .logo-image {
    max-height: 120px;
  }
  
  .title {
    font-size: clamp(3.2rem, 4vw, 4.8rem);
  }
  
  .cta-button {
    min-width: 370px;
    height: 78px;
    font-size: 1.35rem;
    background-image: url('../images/Button.png');
    background-size: 100% 100%;
  }
}

/* ========================================
   Touch and Hover Optimizations
======================================== */
@media (hover: hover) and (pointer: fine) {
  .cta-button:hover {
    transform: scale(1.08);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
}

@media (hover: none) and (pointer: coarse) {
  .cta-button {
    min-height: 48px;
  }
  
  .cta-button:hover {
    transform: none;
    filter: none;
    animation: none;
  }
  
  .cta-button:active {
    transform: scale(0.95);
    filter: brightness(0.85);
    transition: all 0.1s ease-out;
  }
  
  .logo-image:hover {
    transform: none;
  }
  
  .logo-image:active {
    transform: scale(0.98);
    filter: brightness(0.9);
  }
}

/* ========================================
   Performance & Accessibility
======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .title {
    animation: none;
  }
  
  .hero-container::before,
  .hero-container::after,
  .content::before,
  .content::after {
    animation: none;
  }
}

@media (prefers-contrast: high) {
  .title {
    color: var(--gold-primary) !important;
    -webkit-text-fill-color: var(--gold-primary) !important;
    filter: none !important;
  }
  
  .cta-button {
    border: 3px solid var(--gold-primary) !important;
  }
  
  .logo-image {
    filter: contrast(1.5) brightness(1.2);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-overlay: rgba(0, 0, 0, 0.8);
  }
  
  .background-image {
    opacity: 0.7;
    filter: brightness(0.8);
  }
}

/* ========================================
   Print Styles Override
======================================== */
@media print {
  .hero-container {
    height: auto !important;
    background: white !important;
    color: black !important;
  }
  
  .background-image,
  .overlay {
    display: none !important;
  }
  
  .title {
    color: black !important;
    background: none !important;
    -webkit-text-fill-color: black !important;
    filter: none !important;
    font-size: 2rem !important;
  }
  
  .cta-button {
    background: none !important;
    border: 2px solid black !important;
    color: black !important;
    filter: none !important;
    font-size: 1rem !important;
    min-width: 200px !important;
    height: 40px !important;
  }
  
  .hero-container::before,
  .hero-container::after,
  .content::before,
  .content::after {
    display: none !important;
  }
  
  .logo-image {
    max-height: 80px !important;
    filter: none !important;
  }
}