/* Prestige Casino UK - Main Stylesheet */

/* SECTION: CSS Variables */
:root {
    /* Prestige Casino UK Color Scheme */
    --primary: #1a1a2e;        /* Deep navy blue */
    --secondary: #16213e;      /* Darker navy */
    --accent: #d4af37;         /* Gold accent */
    --accent-hover: #b8941f;   /* Darker gold */
    --success: #28a745;        /* Green for success */
    --warning: #ffc107;        /* Yellow for warnings */
    --danger: #dc3545;         /* Red for errors */
    --info: #17a2b8;          /* Blue for info */
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0a0;
    --text-dark: #333333;
    
    /* Background Colors */
    --bg-primary: #0f0f23;     /* Very dark navy */
    --bg-secondary: #1a1a2e;   /* Dark navy */
    --bg-card: rgba(26, 26, 46, 0.8);
    --bg-overlay: rgba(15, 15, 35, 0.95);
    
    /* Borders and Shadows */
    --border-color: rgba(212, 175, 55, 0.2);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    --gradient-hero: linear-gradient(135deg, var(--bg-primary) 0%, var(--primary) 50%, var(--secondary) 100%);
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 4rem 0;
    --card-padding: 2rem;
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* SECTION: Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 26, 46, 0.8) 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* SECTION: Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: 3rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    color: var(--accent);
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

/* SECTION: Layout Components */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: var(--section-padding);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* SECTION: Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--card-padding);
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-medium);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent);
}

/* SECTION: Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-medium);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-success {
    background: var(--success);
    color: var(--text-primary);
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--text-dark);
}

/* SECTION: Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-medium);
}

.header.scrolled {
    background: var(--bg-primary);
    box-shadow: var(--shadow-medium);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

.nav a:hover,
.nav a.active {
    color: var(--accent);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* SECTION: Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    display: none;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.mobile-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a {
    display: block;
    padding: 1rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: var(--bg-card);
    color: var(--accent);
}

.mobile-nav.active {
    display: block;
}

/* SECTION: Hero */
.hero {
    background: var(--gradient-hero);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23d4af37" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 50px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* SECTION: Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.game-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.game-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-medium);
    border: 1px solid var(--border-color);
    display: block;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent);
}

a.game-card {
    text-decoration: none;
    color: inherit;
}

a.game-card:hover {
    color: inherit;
    text-decoration: none;
}

.game-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-info {
    padding: 1rem;
}

.game-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.game-provider {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* SECTION: Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-logos img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-logos img:hover {
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.social-icons img {
    width: 20px;
    height: 20px;
}

/* SECTION: Mobile CTA */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-accent);
    color: var(--text-dark);
    padding: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: all var(--transition-fast);
    border: none;
    border-top: 2px solid var(--accent-hover);
}

.mobile-cta:hover {
    background: var(--accent-hover);
    color: var(--text-dark);
    transform: none;
}

.mobile-cta:active {
    background: var(--accent);
    transform: scale(0.98);
}

/* Show sticky CTA only on mobile devices */
@media (max-width: 768px) {
    .mobile-cta {
        display: block;
    }
}

/* Floating CTA for larger screens */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-accent);
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-heavy);
    z-index: 999;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: none;
}

.floating-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    color: var(--text-dark);
}

/* Show floating CTA only on tablets and larger screens */
@media (min-width: 769px) {
    .floating-cta {
        display: block;
    }
}

/* SECTION: Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* SECTION: Responsive Design */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .game-grid,
    .game-grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        margin-top: 80px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    :root {
        --font-size-base: 14px;
        --section-padding: 2rem 0;
        --card-padding: 1.5rem;
    }
    
    body {
        padding-bottom: 80px; /* Space for sticky CTA */
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-actions {
        display: none;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-content {
        margin-top: 60px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .game-grid,
    .game-grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* About features mobile layout */
    .about-features {
        margin-top: 2rem;
    }
    
    .feature-item {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding: 1rem;
        background: var(--bg-card);
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }
    
    .feature-icon {
        font-size: 2rem;
        flex-shrink: 0;
    }
    
    .feature-item h4 {
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .hero-actions {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .game-grid,
    .game-grid-6 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .hero-content {
        margin-top: 50px;
    }
    
    /* Hero stats layout for small screens */
    .hero-content > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 1rem !important;
        margin-top: 2rem !important;
    }
    
    .hero-content > div[style*="display: flex"] > div {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        padding: 0.75rem !important;
        background: rgba(26, 26, 46, 0.6) !important;
        border-radius: 8px !important;
        border: 1px solid var(--border-color) !important;
    }
    
    .hero-content > div[style*="display: flex"] > div > div:first-child {
        font-size: 1.5rem !important;
        margin-bottom: 0 !important;
    }
    
    .hero-content > div[style*="display: flex"] > div > div:nth-child(2) {
        font-weight: bold !important;
        margin-right: 0.5rem !important;
    }
    
    .hero-content > div[style*="display: flex"] > div > div:last-child {
        font-size: 0.8rem !important;
        opacity: 0.8 !important;
    }
}

/* SECTION: Performance Optimizations */
.lazy {
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.lazy.loaded {
    opacity: 1;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #ffffff;
        --text-secondary: #ffffff;
        --text-muted: #cccccc;
    }
}

/* SECTION: Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* SECTION: Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* SECTION: Print Styles */
@media print {
    .header,
    .mobile-cta,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        border: 1px solid #ccc;
        background: white;
    }
}


/* SECTION: Additional Mobile Optimizations */

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .btn, .mobile-nav a, .nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better mobile menu styling */
    .mobile-nav {
        background: var(--bg-overlay);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-nav ul {
        padding: 0;
    }
    
    .mobile-nav li {
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }
    
    .mobile-nav li:last-child {
        border-bottom: none;
    }
    
    .mobile-nav a {
        padding: 1.25rem 1rem;
        font-size: 1.1rem;
        transition: all var(--transition-fast);
    }
    
    .mobile-nav a:hover,
    .mobile-nav a.active {
        background: rgba(212, 175, 55, 0.1);
        color: var(--accent);
        padding-left: 1.5rem;
    }
    
    /* Improve game cards for mobile */
    .game-card {
        border-radius: 8px;
        transition: all var(--transition-medium);
    }
    
    .game-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .game-info {
        padding: 0.75rem;
    }
    
    .game-info {
        padding: 0.75rem;
        min-height: 80px; /* Ensure enough space for title */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .game-info h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem; /* Reduce margin to save space */
        line-height: 1.2; /* Adjust line height for better fit */
        white-space: normal; /* Allow text to wrap */
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limit to 2 lines */
        -webkit-box-orient: vertical;
    }
    
    .game-info p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0;
    }
    
    /* Better spacing for sections */
    .section {
        padding: 1.5rem 0;
    }
    
    /* Improve hero section for mobile */
    .hero h1 {
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero .btn {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        border-radius: 8px;
    }
    
    /* FAQ improvements for mobile */
    .faq-item {
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .faq-question {
        padding: 1rem;
        background: var(--bg-card);
        cursor: pointer;
        transition: background var(--transition-fast);
        font-weight: 600;
        font-size: 1rem;
    }
    
    .faq-question:hover {
        background: rgba(212, 175, 55, 0.1);
    }
    
    .faq-answer {
        padding: 0 1rem;
        max-height: 0;
        overflow: hidden;
        transition: all var(--transition-medium);
        background: rgba(255, 255, 255, 0.02);
    }
    
    .faq-item.active .faq-answer {
        max-height: 200px;
        padding: 1rem;
    }
    
    /* Better form styling for mobile */
    input, textarea, select {
        width: 100%;
        padding: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background: var(--bg-card);
        color: var(--text-primary);
        font-size: 1rem;
        transition: border-color var(--transition-fast);
    }
    
    input:focus, textarea:focus, select:focus {
        border-color: var(--accent);
        outline: none;
        box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    }
}

/* Tablet-specific optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .game-grid,
    .game-grid-6 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 20px 0;
    }
    
    .hero-content {
        margin-top: 40px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .mobile-cta {
        padding: 0.75rem;
        font-size: 1rem;
    }
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
        --text-muted: #a0a0a0;
        --bg-primary: #0a0a1a;
        --bg-secondary: #151525;
    }
}




