/*
Theme Name: Top5Lucky
Theme URI: https://top5lucky.com
Author: Top5Lucky Team
Author URI: https://top5lucky.com
Description: A vibrant and engaging social casino theme designed for maximum fun and player engagement
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: top5lucky
*/

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

:root {
    --primary-purple: #6B46C1;
    --secondary-purple: #553C9A;
    --accent-gold: #FDB913;
    --accent-orange: #FF6B35;
    --accent-red: #E63946;
    --dark-purple: #2D1B69;
    --light-purple: #9B7DDB;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-dark: #2C2C2C;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    height: 100px;
    width: auto;
}

.mascot-header {
    height: 60px;
    width: auto;
}

.site-title {
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.main-nav {
    flex-shrink: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 5px;
    white-space: nowrap;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.auth-section {
    flex-shrink: 0;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

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

.btn-login:hover {
    background: var(--white);
    color: var(--primary-purple);
    transform: translateY(-2px);
}

.btn-register {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(253, 185, 19, 0.4);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 185, 19, 0.6);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
}

.user-name {
    font-weight: 600;
    font-size: 16px;
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-logout:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/hero-background.jpg') center/cover no-repeat;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    animation: fadeInDown 1s ease;
}

.hero-section p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

/* Why Players Section */
.why-players-section {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    padding: 80px 0;
    color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--primary-purple);
    margin-bottom: 15px;
    font-size: 24px;
}

/* Games Section */
.games-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.games-section .section-title {
    color: var(--dark-purple);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    justify-items: center;
    align-items: start;
}

.games-grid .game-card {
    width: 100%;
    max-width: 350px;
    justify-self: center;
}

.games-grid .game-card:nth-child(4) {
    grid-column: 2 / 3;
    justify-self: center;
}

.game-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-info {
    padding: 20px;
    text-align: center;
}

.game-title {
    color: var(--dark-purple);
    font-size: 22px;
    margin-bottom: 15px;
}

.btn-play {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(253, 185, 19, 0.3);
}

.btn-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(253, 185, 19, 0.5);
}

/* Top Pick Section */
.top-pick-section {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    padding: 80px 0;
    color: var(--white);
}

.top-pick-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.top-pick-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Champions Arena */
.champions-section {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
    padding: 80px 0;
    color: var(--white);
}

.leaderboard {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 40px 50px;
    margin-top: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 1000px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, rgba(253, 185, 19, 0.8) 100%);
    border-radius: 10px;
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: 0;
}

.leaderboard-item:nth-child(2) {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
}

.leaderboard-item:nth-child(3) {
    background: linear-gradient(135deg, #CD7F32 0%, #B8732D 100%);
}

.leaderboard-item:nth-child(n+4) {
    background: linear-gradient(135deg, var(--secondary-purple) 0%, var(--primary-purple) 100%);
}

.rank {
    font-size: 24px;
    margin-right: 15px;
}

.score {
    font-size: 20px;
    letter-spacing: 1px;
}

/* Get Started Section */
.get-started-section {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
    padding: 80px 0;
    color: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--accent-gold);
    border-radius: 50%;
    line-height: 60px;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(253, 185, 19, 0.4);
}

.step-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--primary-purple) 100%);
    padding: 80px 0;
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.author-name {
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-red) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn-cta {
    background: var(--white);
    color: var(--accent-red);
    padding: 15px 50px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Disclaimer Section */
.disclaimer-section {
    background: linear-gradient(135deg, #FF6B8A 0%, #FF4757 100%);
    padding: 40px 0;
    color: var(--white);
    text-align: center;
}

.disclaimer-content {
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.disclaimer-content p {
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #2C2C2C;
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 20px;
}

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

.footer-section a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

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

.gambling-logos {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin-top: 20px;
    background: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
}

.gambling-logos img {
    height: 45px;
    width: 120px;
    object-fit: contain;
    background: white;
    padding: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    animation: slideInDown 0.3s ease;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-red);
}

.modal-content h2 {
    color: var(--primary-purple);
    margin-bottom: 30px;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.modal-content .btn-register,
.modal-content .btn-primary {
    width: 100%;
    margin-top: 10px;
}

/* Spinner */
.spinner {
    display: none;
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

.spinner.active {
    display: block;
}

/* Success Message */
.success-message {
    display: none;
    background: #4CAF50;
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.success-message.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Game Page */
.game-page {
    padding: 40px 0;
    background: var(--light-gray);
}

.game-container {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-header h1 {
    color: var(--dark-purple);
    font-size: 36px;
    margin-bottom: 10px;
}

.game-frame {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    min-height: 500px;
    background: #000;
}

.game-frame iframe {
    width: 100%;
    min-height: 600px;
    border: none;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-orange);
}

/* Contact Page */
.contact-page,
.about-page,
.terms-page {
    padding: 80px 0;
    background: var(--light-gray);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    color: var(--dark-purple);
    font-size: 42px;
    margin-bottom: 15px;
}

.content-card {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .games-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .content-card {
        padding: 30px 20px;
    }
}

/* Age Restriction Badge */
.age-restriction {
    display: inline-block;
    background: var(--accent-red);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 18px;
    margin-left: 10px;
}
