/* ============================================
   HOT SLICE - DARK THEME STYLESHEET
   ============================================
   This stylesheet implements a dark theme design
   with full responsiveness for mobile and desktop.
   ============================================ */

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

/* Reset margins, padding, and box-sizing for consistent rendering */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root variables for dark theme colors - easy to maintain and modify */
:root {
    /* Dark theme color palette */
    --bg-primary: #0a0a0a;           /* Main background - deep black */
    --bg-secondary: #1a1a1a;         /* Secondary background - dark gray */
    --bg-tertiary: #2a2a2a;          /* Tertiary background - medium gray */
    --text-primary: #e0e0e0;         /* Primary text - light gray */
    --text-secondary: #b0b0b0;       /* Secondary text - medium gray */
    --text-accent: #ff6b35;          /* Accent color - orange */
    --border-color: #333333;         /* Border color - dark gray */
    --link-color: #4a9eff;           /* Link color - blue */
    --link-hover: #6bb3ff;           /* Link hover - lighter blue */
    --cta-bg: rgba(255, 107, 53, 0.9); /* CTA background - semi-transparent orange */
    --overlay-bg: rgba(0, 0, 0, 0.7);  /* Overlay background */
    
    /* Spacing scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Breakpoints (for reference, used in media queries) */
    --breakpoint-mobile: 768px;
    --breakpoint-tablet: 1024px;
    --breakpoint-desktop: 1200px;
}

/* Base HTML element styles */
html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    /* Lock screen on mobile - prevent zooming and scrolling issues */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    /* Prevent horizontal scroll on mobile */
    overflow-x: hidden;
    /* Lock viewport on mobile */
    position: relative;
    width: 100%;
    max-width: 100vw;
}

/* ============================================
   TYPOGRAPHY COMPONENTS
   ============================================ */

/* Headings hierarchy for SEO and visual structure */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: 2rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

/* Paragraph and text elements */
p {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

/* Links - accessible and visually distinct */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--link-hover);
    text-decoration: underline;
    outline: 2px solid var(--link-hover);
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid var(--link-hover);
    outline-offset: 2px;
}

/* Lists */
ul, ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

li {
    margin-bottom: var(--spacing-xs);
}

/* Emphasis */
em {
    font-style: italic;
    color: var(--text-accent);
}

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */

/* Container: Centers content and sets max-width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header Component: Top navigation bar - Thinner design */
.header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Ensure header stays on top - Thinner padding */
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: inline-block;
}

.logo {
    height: 40px;
    width: auto;
    display: block;
}

/* Registration Button: Right side of header */
.register-button {
    display: inline-block;
    background-color: var(--text-accent);
    color: #ffffff;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.register-button:hover,
.register-button:focus {
    background-color: #ff7b4d;
    transform: scale(1.05);
    text-decoration: none;
    outline: none;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* Breadcrumbs Component: Navigation trail for SEO - Finer design */
.breadcrumbs {
    background-color: var(--bg-secondary);
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-xs) / 2);
    font-size: 0.85rem;
}

.breadcrumbs-item {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.breadcrumbs-item:not(:last-child)::after {
    content: '/';
    margin: 0 calc(var(--spacing-xs) / 2);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.breadcrumbs-item a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.breadcrumbs-item[aria-current="page"] {
    color: var(--text-primary);
    font-weight: 400;
    font-size: 0.85rem;
}

/* Main Content Area */
.main {
    min-height: calc(100vh - 200px);
}

/* ============================================
   BANNER SECTION COMPONENT
   ============================================ */

/* Banner wrapper: Contains banner image and CTA overlay */
.banner-section {
    position: relative;
    width: 100%;
    margin-bottom: var(--spacing-xl);
}

.banner-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Banner image: Responsive image that adapts to screen size */
.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* Ensure image covers full width */
}

/* CTA Overlay: Semi-transparent call-to-action block */
.banner-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--overlay-bg);
    padding: var(--spacing-lg);
    border-radius: 8px;
    text-align: center;
    /* Semi-transparent background for readability */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Center positioning */
    width: 90%;
    max-width: 500px;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.cta-title {
    color: var(--text-primary);
    font-size: 2rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.cta-text {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.1rem;
}

/* CTA Button: Prominent call-to-action button */
.cta-button {
    display: inline-block;
    background-color: var(--cta-bg);
    color: #ffffff;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-button:hover,
.cta-button:focus {
    background-color: #ff7b4d;
    transform: scale(1.05);
    text-decoration: none;
    outline: none;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* ============================================
   CASINOS SECTION COMPONENT
   ============================================ */

/* Casinos section: Grid of recommended casino logos */
.casinos-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-secondary);
    margin-bottom: var(--spacing-xl);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

/* Casinos grid: Responsive grid layout for casino logos */
.casinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.casino-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: var(--spacing-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.casino-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.casino-link {
    display: block;
    width: 100%;
    text-align: center;
    position: relative;
}

.casino-logo {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.casino-link:hover .casino-logo,
.casino-link:focus .casino-logo {
    filter: brightness(0.7);
    opacity: 0.7;
}

/* Casino Play Button: Pop-up on hover */
.casino-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background-color: var(--cta-bg);
    color: #ffffff;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    opacity: 0;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.casino-item:hover .casino-play-button,
.casino-item:focus-within .casino-play-button {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* ============================================
   CONTENT SECTION COMPONENT
   ============================================ */

/* Content section: Main article content area */
.content-section {
    padding: var(--spacing-xl) 0;
    max-width: 900px;
    margin: 0 auto;
}

.main-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-accent);
}

/* ============================================
   TABLE COMPONENT (Responsive)
   ============================================ */

/* Table wrapper: Enables horizontal scrolling on mobile */
.table-wrapper {
    overflow-x: auto;
    margin: var(--spacing-lg) 0;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

/* Multipliers table: Displays symbol multipliers */
.multipliers-table {
    width: 100%;
    min-width: 400px;
    border-collapse: collapse;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
}

.multipliers-table thead {
    background-color: var(--bg-tertiary);
}

.multipliers-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.multipliers-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.multipliers-table tbody tr:hover {
    background-color: var(--bg-tertiary);
    transition: background-color 0.2s ease;
}

.multipliers-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   LAPTOP IMAGES SECTION - INLINE WITH TEXT
   ============================================ */

/* Laptop inline wrapper: Images that float within text flow */
.laptop-inline-wrapper {
    float: left;
    margin: 10px;
    width: 250px;
    clear: none;
}

.laptop-inline-wrapper.laptop-float-left {
    float: left;
    margin: 10px;
    width: 250px;
}

.laptop-inline-wrapper.laptop-float-right {
    float: right;
    margin: 10px;
    width: 250px;
}

.laptop-inline-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: block;
}

/* Ensure text flows around images naturally */
.content-section p {
    text-align: justify;
    overflow: visible;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    position: relative;
}

/* Allow text to wrap around floated images */
.content-section {
    overflow: visible;
}

/* Clear floats only for headings to allow text flow */
.content-section h2,
.content-section h1 {
    clear: both;
    margin-top: var(--spacing-lg);
}

/* Clearfix for content section */
.content-section::after {
    content: "";
    display: table;
    clear: both;
}

/* Ensure lists and other elements can flow around images */
.content-section ul,
.content-section ol {
    overflow: visible;
}

/* Add spacing after images to allow text to continue flowing */
.laptop-inline-wrapper + p,
.laptop-inline-wrapper + h2,
.laptop-inline-wrapper + h1 {
    margin-top: 0;
}

/* ============================================
   MOBILE SCREENSHOTS SECTION
   ============================================ */

/* Mobile screenshots: Grid of mobile device screenshots */
.mobile-screenshots {
    margin: var(--spacing-xxl) 0;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--border-color);
}

.screenshots-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    justify-items: center;
}

.screenshot-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.screenshot-img:hover {
    transform: scale(1.05);
}

/* ============================================
   FAQ SECTION COMPONENT
   ============================================ */

.faq-section {
    margin: var(--spacing-xl) 0;
}

.faq-section h3 {
    color: var(--text-accent);
    margin-top: var(--spacing-lg);
}

.faq-section p {
    margin-left: var(--spacing-md);
}

/* ============================================
   FOOTER COMPONENT
   ============================================ */

/* Footer: Site footer with payment methods - Reduced size */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-md) 0 var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.footer-title {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

/* Payment grid: Grid of payment method logos - Reduced size */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--spacing-sm);
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: var(--spacing-md);
}

.payment-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-tertiary);
    padding: var(--spacing-xs);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.payment-item:hover {
    transform: scale(1.1);
    background-color: var(--bg-primary);
}

.payment-logo {
    max-width: 100%;
    height: auto;
    max-height: 30px;
    object-fit: contain;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.payment-item:hover .payment-logo {
    filter: brightness(1);
}

/* Footer bottom: Copyright and disclaimer - Reduced size */
.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.copyright,
.disclaimer {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: var(--spacing-xs) 0;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Mobile devices (up to 768px) */
@media screen and (max-width: 768px) {
    /* Typography adjustments for mobile */
    :root {
        --font-size-base: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    /* Container padding reduction for mobile */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Header adjustments */
    .header {
        padding: var(--spacing-xs) 0;
    }
    
    .logo {
        height: 35px;
    }
    
    .register-button {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
    }
    
    /* Banner CTA: Centered and full-width on mobile */
    .banner-cta {
        width: 95%;
        padding: var(--spacing-md);
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
    }
    
    /* Casinos grid: 2 columns on mobile */
    .casinos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .casino-logo {
        max-height: 60px;
    }
    
    /* Table: Full width scroll on mobile */
    .table-wrapper {
        margin: var(--spacing-md) -var(--spacing-sm);
        padding: 0 var(--spacing-sm);
    }
    
    .multipliers-table {
        font-size: 0.9rem;
        min-width: 350px;
    }
    
    .multipliers-table th,
    .multipliers-table td {
        padding: var(--spacing-sm);
    }
    
    /* Laptop images: Stack vertically on mobile */
    .laptop-inline-wrapper {
        float: none !important;
        max-width: 100%;
        margin: var(--spacing-md) auto !important;
        clear: both;
    }
    
    .laptop-inline-wrapper.laptop-float-left,
    .laptop-inline-wrapper.laptop-float-right {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .content-section p {
        text-align: left;
    }
    
    /* Screenshots: Three images across the width on mobile */
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xs);
    }
    
    .screenshot-img {
        width: 100%;
        height: auto;
    }
    
    /* Payment grid: 3 columns on mobile */
    .payment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xs);
    }
    
    .payment-logo {
        max-height: 25px;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .casino-play-button {
        font-size: 0.9rem;
        padding: var(--spacing-xs) var(--spacing-md);
    }
    
    /* Content spacing adjustments */
    .content-section {
        padding: var(--spacing-lg) 0;
    }
    
    /* Lock screen on mobile - prevent zoom */
    body {
        touch-action: pan-y;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Allow text selection for content */
    p, li, h1, h2, h3, h4, h5, h6 {
        -webkit-user-select: text;
        user-select: text;
    }
}

/* Tablet devices (769px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .casinos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .laptop-images {
        max-width: 250px;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop devices (1025px and above) */
@media screen and (min-width: 1025px) {
    .casinos-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .laptop-images {
        max-width: 300px;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .banner-cta {
        max-width: 600px;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus styles for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--link-hover);
    outline-offset: 2px;
}


/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bg-primary: #000000;
        --text-primary: #ffffff;
        --border-color: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .banner-section,
    .casinos-section,
    .mobile-screenshots {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
