/* N8 Casino App - Modern Gaming Platform Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 50%, #8b4513 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffd700;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #ff0000, #ff4500);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    border: 2px solid #ff0000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.8);
    background: linear-gradient(45deg, #ff1a1a, #ff5500);
}

.btn-secondary {
    background: linear-gradient(45deg, #00ff00, #32cd32);
    color: #1a1a1a;
    border: 2px solid #00ff00;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #00ff1a, #00ff55);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.8);
}

/* Breadcrumb Styles */
.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.breadcrumb li {
    color: #666;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: #999;
}

.breadcrumb a {
    color: #ffd700;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Main Content Styles */
main {
    background: white;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #8b4513 50%, #ffd700 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.content {
    padding: 3rem 2rem;
}

h2 {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

h3 {
    color: #ff8c00;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Feature Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: linear-gradient(135deg, #2d1810 0%, #1a1a1a 100%);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
    transition: transform 0.3s ease;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

/* FAQ Styles */
.faq {
    background: linear-gradient(135deg, #2d1810 0%, #1a1a1a 100%);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ffd700;
    padding-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-answer {
    color: #e0e0e0;
    line-height: 1.6;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #ffd700;
    color: #ccc;
}

/* Button Centering for All Pages */
.cta-buttons,
.error-actions,
.suggested-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .content {
        padding: 2rem 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons,
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* 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: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Content Images Styling */
.content-image {
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.content-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.content-image:hover img {
    transform: scale(1.02);
}

/* Specific banner styles */
.hero-banner {
    border: 3px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.features-banner {
    border: 3px solid #ff8c00;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

.registration-banner {
    border: 3px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.login-banner {
    border: 3px solid #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.security-banner {
    border: 3px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.faq-banner {
    border: 3px solid #ff8c00;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

.cta-banner {
    border: 3px solid #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

/* Image loading placeholder */
.content-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #2d1810 25%, #1a1a1a 50%, #2d1810 75%);
    background-size: 200% 200%;
    animation: shimmer 2s infinite;
    z-index: 1;
}

.content-image img {
    position: relative;
    z-index: 2;
}

/* Responsive image adjustments */
@media (max-width: 768px) {
    .content-image {
        margin: 1.5rem 0;
    }
    
    .content-image img {
        max-height: 250px;
    }
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Casino Theme Animations */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px #ff0000, 0 4px 15px rgba(255, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 20px #ff0000, 0 0 30px #ff4500, 0 8px 25px rgba(255, 0, 0, 0.8);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.1) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    pointer-events: none;
}

.btn-primary {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Casino chips effect for feature cards */
.feature-card::before {
    content: '🎰';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.3;
}

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.feature-card:hover::after {
    opacity: 1;
    transform: rotate(45deg) scale(1.1);
}

/* Enhanced Button Effects */
.btn::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: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary::after {
    content: '🎯';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.8;
}

.btn-secondary::after {
    content: '✨';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.8;
}

/* Button pulse effect */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-primary {
    animation: glow 2s ease-in-out infinite alternate, pulse 3s ease-in-out infinite;
}

.btn-secondary {
    animation: pulse 3s ease-in-out infinite;
}
