/* ============================================
   FORTUNICA CASINO - LIGHT THEME STYLESHEET
   ============================================
   This stylesheet implements a light theme design
   with full responsive support for mobile and desktop.
   All components are styled with accessibility in mind.
   ============================================ */

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */
/* Reset default browser styles for consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root variables for consistent theming */
:root {
    /* Color palette - Light theme */
    --primary-color: #1a5490;
    --secondary-color: #ff6b35;
    --accent-color: #f4a261;
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --background-light: #ffffff;
    --background-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Base HTML element styles */
html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--background-light);
    line-height: var(--line-height-base);
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* ============================================
   SKIP LINK (Accessibility)
   ============================================ */
/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   CONTAINER COMPONENT
   ============================================ */
/* Main container for content centering and max-width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* ============================================
   HEADER COMPONENT
   ============================================ */
/* Header section with navigation */
.header {
    background-color: var(--background-light);
    box-shadow: 0 2px 8px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo wrapper */
.logo-wrapper {
    flex-shrink: 0;
}

.logo {
    max-width: 200px;
    height: auto;
    display: block;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Auth buttons (Login/Registration) */
.auth-buttons {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.auth-button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-block;
    border: 1px solid transparent;
}

.auth-button.login {
    color: var(--text-primary);
    background-color: transparent;
    border-color: var(--border-color);
}

.auth-button.login:hover,
.auth-button.login:focus {
    background-color: var(--background-gray);
    border-color: var(--primary-color);
}

.auth-button.register {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-button.register:hover,
.auth-button.register:focus {
    background-color: #144a7a;
    border-color: #144a7a;
    transform: translateY(-1px);
}

/* Mobile menu toggle - hidden since no navigation menu */
.mobile-menu-toggle {
    display: none;
}

/* Desktop auth buttons layout */
@media (min-width: 768px) {
    .auth-buttons {
        gap: var(--spacing-sm);
    }
    
    .auth-button {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

/* ============================================
   BREADCRUMBS COMPONENT
   ============================================ */
/* Breadcrumb navigation for SEO and user orientation */
.breadcrumbs {
    background-color: var(--background-gray);
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin: 0 var(--spacing-xs);
    color: var(--text-secondary);
}

.breadcrumb-list a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================
   HERO BANNER COMPONENT
   ============================================ */
/* Hero banner section with call-to-action overlay */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Call-to-action overlay (semi-transparent block) */
.cta-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(26, 84, 144, 0.85); /* Semi-transparent primary color */
    padding: var(--spacing-md);
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 500px;
    backdrop-filter: blur(5px); /* Modern blur effect */
}

.cta-content {
    color: white;
}

.cta-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.cta-text {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.cta-button:hover,
.cta-button:focus {
    background-color: #e55a2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-medium);
}

.cta-button:active {
    transform: translateY(0);
}

/* Mobile banner adjustments */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 250px;
    }
    
    .cta-overlay {
        width: 95%;
        padding: var(--spacing-sm);
    }
    
    .cta-title {
        font-size: 1.2rem;
    }
    
    .cta-text {
        font-size: 0.9rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: var(--spacing-xs) var(--spacing-md);
    }
}

/* Desktop banner adjustments */
@media (min-width: 769px) {
    .hero-banner {
        min-height: 500px;
    }
    
    .banner-image {
        min-height: 500px;
        object-fit: cover;
    }
}

/* ============================================
   POPULAR SLOTS SECTION
   ============================================ */
/* Section for displaying popular slot games */
.popular-slots {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-gray);
}

.section-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-weight: 700;
}

/* Slots grid layout - 6 items per row on desktop, 2 on mobile */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    list-style: none;
}

.slot-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    background-color: var(--background-light);
}

.slot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px var(--shadow-medium);
}

.slot-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

/* Desktop: 6 slots per row */
@media (min-width: 768px) {
    .slots-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: var(--spacing-sm);
    }
}

/* ============================================
   CONTENT SECTION
   ============================================ */
/* Main content area with article and table */
.content-section {
    padding: var(--spacing-xl) 0;
}

.main-article {
    max-width: 900px;
    margin: 0 auto;
}

.content-text {
    margin-bottom: var(--spacing-xl);
}

.content-text p {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.8;
}

/* Table wrapper for responsive scrolling */
.table-wrapper {
    margin-top: var(--spacing-xl);
}

.table-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

/* Table scroll container for mobile */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -var(--spacing-sm);
    padding: 0 var(--spacing-sm);
}

/* Casino information table */
.casino-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--background-light);
    box-shadow: 0 2px 8px var(--shadow-light);
    border-radius: 8px;
    overflow: hidden;
    min-width: 600px; /* Minimum width for desktop */
}

.casino-table thead {
    background-color: var(--primary-color);
    color: white;
}

.casino-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.casino-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-fast);
}

.casino-table tbody tr:hover {
    background-color: var(--background-gray);
}

.casino-table tbody tr:last-child {
    border-bottom: none;
}

.casino-table td {
    padding: var(--spacing-md);
    color: var(--text-primary);
}

/* Mobile table adaptation - stack cells vertically */
@media (max-width: 767px) {
    .casino-table {
        min-width: 100%;
        border: 0;
    }
    
    .casino-table thead {
        display: none; /* Hide header on mobile */
    }
    
    .casino-table tbody tr {
        display: block;
        margin-bottom: var(--spacing-md);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: var(--spacing-sm);
        background-color: var(--background-light);
    }
    
    .casino-table tbody td {
        display: block;
        text-align: right;
        padding: var(--spacing-xs) var(--spacing-sm);
        border-bottom: 1px solid var(--border-color);
        position: relative;
        padding-left: 50%;
    }
    
    .casino-table tbody td:last-child {
        border-bottom: none;
    }
    
    .casino-table tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: var(--spacing-sm);
        font-weight: 600;
        color: var(--text-primary);
        text-align: left;
    }
}

/* ============================================
   FOOTER COMPONENT
   ============================================ */
/* Footer with payment logos and links */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: var(--spacing-md) 0 var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.payment-methods {
    margin-bottom: var(--spacing-md);
}

.payment-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    list-style: none;
}

.payment-logo {
    background-color: transparent;
    padding: 0.3rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    opacity: 0.8;
}

.payment-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

.payment-icon {
    max-width: 60px;
    max-height: 35px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make logos white to match footer */
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-nav {
    margin-bottom: var(--spacing-xs);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 0.85rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover,
.footer-links a:focus {
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: var(--spacing-xs);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
/* Screen reader only text (for accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   MOBILE VIEWPORT FIX
   ============================================ */
/* Fix for mobile viewport issues */
@viewport {
    width: device-width;
    initial-scale: 1;
    maximum-scale: 5;
    user-scalable: yes;
}

/* Prevent text size adjustment on iOS */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .cta-overlay,
    .breadcrumbs {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

