/* PGLucky88 Casino - SEO Optimized CSS */

/* CSS Variables with Brand Colors */
:root {
    --primary-color: #950101;
    --secondary-color: #8b0e1a;
    --accent-color: #d41b2c;
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #a31621, #8b0e1a, #d41b2c);
    --gradient-secondary: linear-gradient(135deg, #f3f4f6, #ffffff);
    --gradient-accent: linear-gradient(135deg, #d41b2c, #a31621);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--black);
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    color: var(--gray-800);
}

p {
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
    line-height: 1.7;
}

/* Header and Navigation */
.header {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    padding: var(--spacing-sm) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    min-height: 70px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
    z-index: 1001;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--white);
}

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: var(--gray-100);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: #4A4A4A;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin-left: var(--spacing-sm);
    color: #666666;
}

.breadcrumb-link {
    color: #8B0000;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-item {
    list-style: none;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
    display: inline-block;
    white-space: nowrap;
    line-height: 1.2;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(163, 22, 33, 0.4);
    transform: translateY(-2px);
    border: 2px solid var(--white);
    font-weight: 600;
}

/* Button Styles */
.nav-link.login-btn, 
.nav-link.register-btn {
    background: var(--white);
    color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    transition: var(--transition);
    border: 2px solid var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-left: var(--spacing-md);
    flex-shrink: 0;
}

.nav-link.login-btn:hover, 
.nav-link.register-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--white);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-xl);
}

.hero-section {
    text-align: center;
    padding: var(--spacing-2xl) 0;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(163, 22, 33, 0.03) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-title {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #000000;
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Content Sections */
.content-section {
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: var(--transition);
    transform-origin: bottom;
}

.content-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.content-section:hover::before {
    transform: scaleY(1);
}

.section-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 4px rgba(163, 22, 33, 0.3);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(163, 22, 33, 0.1), transparent);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-lg);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(163, 22, 33, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(163, 22, 33, 0.4);
}

.feature-card:hover .feature-icon::before {
    left: 100%;
}

/* FAQ Section */
.faq-item {
    margin-bottom: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    background: var(--gray-100);
    padding: var(--spacing-lg);
    font-weight: 600;
    color: #8B0000;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    transition: var(--transition);
    border-left: 4px solid #8B0000;
    position: relative;
}

.faq-question:hover {
    background: var(--gray-200);
    border-left-color: #8B0000;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    transition: var(--transition);
}

.faq-question[aria-expanded="true"]::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: var(--spacing-lg);
    display: none;
    color: #2D2D2D;
    line-height: 1.7;
}

.faq-answer.active {
    display: block;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    margin: var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(163, 22, 33, 0.3);
}

.cta-section p {
    color: var(--white) !important;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.cta-section * {
    color: var(--white) !important;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cta-title {
    color: var(--white) !important;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.cta-button {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 2px solid var(--gray-900);
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(163, 22, 33, 0.4);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.back-to-top.visible {
    display: flex;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-2xl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        z-index: 999;
        gap: 0;
        justify-content: flex-start;
        padding: var(--spacing-lg) 0;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: var(--spacing-sm);
    }
    
    .login-btn, .register-btn {
        margin: var(--spacing-xs) auto;
        display: inline-block;
        min-width: 120px;
    }
    
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    .nav-container {
        padding: 0 var(--spacing-md);
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 var(--spacing-md);
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .main-content {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .hamburger,
    .back-to-top,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .main-content {
        padding: 0;
    }
    
    .content-section {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.cta-button:focus,
.faq-question:focus,
.back-to-top:focus {
    outline: 3px solid #FF6B35;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #000000;
        --gray-600: #000000;
        --gray-700: #000000;
        --gray-800: #000000;
    }
    
    .breadcrumb-link {
        color: #000000;
    }
    
    .faq-question {
        color: #000000;
        border-left-color: #000000;
    }
    
    .faq-answer {
        color: #000000;
    }
    
    p, li {
        color: #000000;
    }
    
    .hero-subtitle {
        color: #000000;
    }
}

/* Additional visual improvements */
.hero-title, .hero-subtitle {
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
    z-index: 1;
}

/* Enhanced typography */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--black);
}

h1 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
 
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    color: var(--gray-800);
    font-weight: 600;
}

/* Enhanced paragraph styling */
p {
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
    line-height: 1.7;
    color: #2D2D2D;
    font-weight: 400;
}

/* Enhanced list styling */
ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
    color: #2D2D2D;
}

/* Enhanced link styling */
a {
    color: #8B0000;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

a:hover {
    color: #8B0000;
    text-decoration: underline;
}

/* Enhanced button styling */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

/* Enhanced form elements */
input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: var(--white);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(163, 22, 33, 0.1);
}

/* Improved button focus states */
.nav-link:focus,
.cta-button:focus,
.faq-question:focus,
.back-to-top:focus {
    outline: 3px solid #FF6B35;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

/* Better mobile button spacing */
@media (max-width: 768px) {
    .cta-buttons {
        gap: var(--spacing-md);
    }
    
    .cta-button {
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: 0.9rem;
    }
}

/* Enhanced animations and micro-interactions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Add animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Enhanced scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Enhanced selection styling */
::selection {
    background: rgba(163, 22, 33, 0.2);
    color: var(--gray-800);
}

::-moz-selection {
    background: rgba(163, 22, 33, 0.2);
    color: var(--gray-800);
}

/* Enhanced 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(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced focus visible for better accessibility */
.nav-link:focus-visible,
.cta-button:focus-visible,
.faq-question:focus-visible,
.back-to-top:focus-visible {
    outline: 3px solid #FF6B35;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

/* Enhanced dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --black: #ffffff;
        --gray-50: #2a2a2a;
        --gray-100: #333333;
        --gray-200: #404040;
        --gray-300: #555555;
        --gray-400: #666666;
        --gray-500: #777777;
        --gray-600: #999999;
        --gray-700: #cccccc;
        --gray-800: #e0e0e0;
        --gray-900: #f0f0f0;
    }
    
    .breadcrumb-link {
        color: #FF6B35;
    }
    
    .faq-question {
        color: #FF6B35;
        border-left-color: #FF6B35;
    }
    
    .faq-answer {
        color: #e0e0e0;
    }
    
    p, li {
        color: #e0e0e0;
    }
    
    .hero-subtitle {
        color: #cccccc;
    }
}

/* Additional accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000000;
    color: #ffffff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Ensure interactive elements are keyboard accessible */
button:not(:disabled),
a[href],
input:not(:disabled),
select:not(:disabled),
textarea:not(:disabled),
[tabindex]:not([tabindex="-1"]) {
    cursor: pointer;
}

/* Improve button contrast in all states */
.nav-link.login-btn,
.nav-link.register-btn {
    background: #ffffff;
    color: #8B0000;
    border: 2px solid #ffffff;
}

.nav-link.login-btn:hover,
.nav-link.register-btn:hover {
    background: #8B0000;
    color: #ffffff;
    border-color: #8B0000;
}
