/* Casinary.com CSS Styles */

/* Color palette */
:root {
    --primary: #6a1b9a;
    --primary-dark: #4a148c;
    --primary-light: #9c4dcc;
    --secondary: #00c853;
    --secondary-dark: #009624;
    --secondary-light: #5efc82;
    --dark: #2e2e2e;
    --light: #f8f8f8;
    --gray: #9e9e9e;
    --light-gray: #e0e0e0;
    --accent: #ffc107;
    --accent-dark: #ff8f00;
    --error: #f44336;
    --shadow: rgba(0, 0, 0, 0.15);
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

section {
    padding: 5rem 2rem;
}

.btn-primary, .btn-secondary, .btn-game {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: solid 1px var(--primary-dark);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow);
}

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

.btn-secondary:hover {
    background-color: var(--primary);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow);
}

.btn-game {
    background-color: var(--secondary);
    color: white;
    border: none;
    font-size: 0.9rem;
}

.btn-game:hover {
    background-color: var(--secondary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow);
}

.btn-game.disabled {
    background-color: var(--light-gray);
    cursor: not-allowed;
}

.btn-game.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Header and Navigation */
header {
    background-color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    color: var(--primary);
    margin-bottom: 0;
    line-height: 1;
}

.logo .tagline {
    font-size: 0.8rem;
    color: var(--gray);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--dark);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 0;
  max-width: 1200px;
  margin: 0 auto; 
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23ffffff" fill-opacity="0.05" d="M50 0 L100 50 L50 100 L0 50 Z" /></svg>');
    background-size: 50px;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-chips {
    position: relative;
    width: 400px;
    height: 300px;
}

.chip, .card {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transform: rotate(var(--rotation));
    animation: float 3s infinite ease-in-out;
}

.chip {
    width: 80px;
    height: 80px;
}

.chip-1 {
    background-color: var(--accent);
    top: 50px;
    left: 50px;
    --rotation: 15deg;
    animation-delay: 0s;
}

.chip-2 {
    background-color: var(--secondary);
    top: 150px;
    left: 180px;
    --rotation: -8deg;
    animation-delay: 0.5s;
}

.chip-3 {
    background-color: var(--error);
    top: 80px;
    left: 250px;
    --rotation: 22deg;
    animation-delay: 1s;
}

.card {
    width: 120px;
    height: 160px;
    border-radius: 10px;
    background-color: white;
}

.card-ace {
    top: 120px;
    left: 30px;
    --rotation: -15deg;
    animation-delay: 1.5s;
}

.card-king {
    top: 30px;
    left: 150px;
    --rotation: 10deg;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotation));
    }
    50% {
        transform: translateY(-15px) rotate(var(--rotation));
    }
}

/* Games Section */
.games-section {
    background-color: white;
}

.games-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background-color: white;
    border-radius: 20px;
    padding: 2rem;
    width: 300px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow);
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blackjack .game-icon {
    color: var(--dark);
}

.wordie .game-icon {
    color: var(--primary);
}

.poker .game-icon {
    color: var(--accent);
}

.game-card h3 {
    margin-bottom: 1rem;
}

.game-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.game-card.coming-soon {
    position: relative;
}

.game-card.coming-soon::after {
    content: 'COMING SOON';
    position: absolute;
    top: 20px;
    right: -10px;
    background-color: var(--accent);
    color: var(--dark);
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    transform: rotate(25deg);
}

/* How It Works Section */
.how-it-works {
    background-color: var(--light);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    position: relative;
    padding: 2rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Credits Section */
.credits-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
}

.credits-content {
    flex: 1;
}

.credits-image {
    flex: 1;
    position: relative;
    min-height: 300px;
}

.credit-coin {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #ffd700, #f3a50d);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 30px rgba(243, 165, 13, 0.3);
    animation: spin 20s linear infinite;
}

.credit-coin::before {
    content: 'C';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.credits-features {
    list-style: none;
    margin: 2rem 0;
}

.credits-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.credits-features li span {
    color: var(--secondary);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light);
}

.testimonials-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 5px 15px var(--shadow);
}

.stars {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.user {
    font-weight: 600;
    color: var(--primary);
    margin-top: 1rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

.cta h2 {
    font-size: 2.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.players-count {
    margin-top: 3rem;
    font-size: 1.2rem;
}

.count {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 5rem 2rem 2rem;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

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

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

.footer-column a {
    color: var(--light-gray);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.9rem;
}

.disclaimer {
    font-style: italic;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding: 4rem 2rem;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .credits-section {
        flex-direction: column;
        text-align: center;
    }
    
    .credits-features li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step {
        width: 100%;
    }
}