/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Social Casino Theme */
    --primary-dark: #0a0e1a;
    --secondary-dark: #1a1f2e;
    --accent-gold: #FFD700;
    --accent-gold-dark: #C9A520;
    --accent-purple: #8B5CF6;
    --accent-red: #EF4444;
    --text-primary: #FFFFFF;
    --text-secondary: #B8BCC8;
    --text-muted: #6B7280;
    --border-color: #2D3748;
    --card-bg: #1a1f2e;
    --hover-bg: #252a3a;
    --success: #10B981;
    --warning: #F59E0B;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold-dark);
}

/* Header */
header {
    background: var(--secondary-dark);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    height: 100px;
    width: auto;
    transition: height 0.3s ease;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

/* Burger Menu Button */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--accent-gold);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

nav a:hover {
    color: var(--accent-gold);
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: padding 0.3s ease;
}

.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"><circle cx="50" cy="50" r="2" fill="rgba(255,215,0,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Games Section */
.games-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    transition: padding 0.3s ease;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-gold);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--border-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    border-color: var(--accent-gold);
}

.game-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-image {
    transform: scale(1.05);
}

.game-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.game-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.game-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-play {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: var(--primary-dark);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    color: var(--primary-dark);
}

.btn-show-more {
    display: block;
    margin: 2rem auto;
    background: transparent;
    color: var(--accent-gold);
    padding: 1rem 3rem;
    border: 2px solid var(--accent-gold);
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 300px;
    text-align: center;
}

.btn-show-more:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    padding: 4rem 2rem;
    background: var(--secondary-dark);
    margin-top: 4rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

.contact-info h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.contact-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.contact-item:first-child {
    border-top: none;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--primary-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: var(--primary-dark);
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Form Messages */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Footer */
footer {
    background: var(--secondary-dark);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
    transition: padding 0.3s ease;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.responsible-gaming {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.age-restriction {
    display: inline-block;
    line-height: 0;
}

.age-restriction img {
    height: 60px;
    width: auto;
    display: block;
}

.responsible-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.responsible-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    transition: background 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.responsible-links a:hover {
    background: var(--hover-bg);
}

.responsible-links a img {
    height: 100px;
    width: 100px;
    display: block;
    object-fit: contain;
}

.responsible-links a:has(img) span {
    display: none;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Game Page Styles */
.game-page {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-header h1 {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.game-iframe-container {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: var(--card-bg);
    border: 2px solid var(--border-color);
}

.game-iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.game-info-section {
    margin-bottom: 3rem;
}

.game-info-section h2 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.game-info-section ul {
    list-style: none;
    padding-left: 0;
}

.game-info-section li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
}

.game-info-section li::before {
    content: '🎰';
    position: absolute;
    left: 0;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.feature-card h3 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        padding: 0;
    }

    .logo img {
        height: 80px;
    }

    .logo span {
        font-size: 1.3rem;
    }

    nav ul {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    header {
        padding: 1rem;
    }

    .header-container {
        padding: 0;
    }

    .logo img {
        height: 70px;
    }

    .logo span {
        font-size: 1.2rem;
    }

    /* Burger Menu - Show on mobile */
    .burger-menu {
        display: flex;
    }

    /* Hide navigation on mobile by default */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--secondary-dark);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 2rem 0;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 0;
        margin: 2rem 0;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    nav ul li a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        color: var(--text-primary);
        transition: background 0.3s ease, color 0.3s ease;
    }

    nav ul li a:hover {
        background: var(--hover-bg);
        color: var(--accent-gold);
    }

    /* Overlay when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .game-iframe {
        height: 500px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .responsible-gaming {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .game-card-image {
        height: 180px;
        font-size: 3rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .games-section {
        padding: 3rem 1.5rem;
    }

    .game-page {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .games-section {
        padding: 2rem 1rem;
    }

    .game-page {
        padding: 1.5rem 1rem;
    }

    .game-iframe {
        height: 400px;
    }

    header {
        padding: 0.75rem 1rem;
    }

    .logo img {
        height: 60px;
    }

    .logo span {
        font-size: 1rem;
    }

    nav {
        width: 85%;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .game-card-image {
        height: 150px;
        font-size: 2.5rem;
    }

    .game-card-content {
        padding: 1rem;
    }

    .btn-play {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-show-more {
        padding: 0.85rem 2rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .game-header h1 {
        font-size: 2rem;
    }

    .responsible-links {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .responsible-links a {
        width: 100%;
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-section {
        padding: 3rem 1.5rem;
    }

    .contact-container {
        padding: 0;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
}
