/* 
 * Tapod Games - Puzzle Game Style Theme
 * Light, clean, playful design inspired by casual puzzle games
 */

:root {
    /* Puzzle Game Color Palette - Light and Playful */
    --puzzle-primary: #6c5ce7;       /* Main purple */
    --puzzle-primary-light: #a29bfe; /* Light purple */
    --puzzle-secondary: #00cec9;     /* Teal */
    --puzzle-accent: #fd79a8;        /* Pink accent */
    --puzzle-warning: #fdcb6e;       /* Yellow */
    --puzzle-success: #00b894;       /* Green */
    
    /* Light Background Colors */
    --puzzle-bg-light: #f8f9fa;
    --puzzle-bg-lighter: #ffffff;
    --puzzle-bg-card: #ffffff;
    
    /* Text Colors */
    --puzzle-text-dark: #2d3436;
    --puzzle-text-medium: #636e72;
    --puzzle-text-light: #b2bec3;
    
    /* UI Variables */
    --puzzle-border-radius: 20px;
    --puzzle-border-radius-sm: 12px;
    --puzzle-box-shadow: 0 10px 30px rgba(108, 92, 231, 0.1);
    --puzzle-box-shadow-lg: 0 20px 50px rgba(108, 92, 231, 0.15);
    --puzzle-transition: all 0.3s ease;
    --puzzle-glow: 0 0 30px rgba(108, 92, 231, 0.2);
}

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

body {
    font-family: 'Nunito', 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--puzzle-bg-light);
    color: var(--puzzle-text-dark);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Puzzle Container */
.puzzle-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Puzzle Header - Light and Clean */
.puzzle-header {
    padding: 1.5rem 0;
    background-color: var(--puzzle-bg-lighter);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.puzzle-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.puzzle-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.puzzle-logo-image {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 5px 15px rgba(108, 92, 231, 0.2));
    transition: var(--puzzle-transition);
}

.puzzle-logo-image:hover {
    transform: rotate(5deg) scale(1.05);
}

.puzzle-logo-text {
    font-family: 'Comic Neue', 'Nunito', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--puzzle-primary);
    letter-spacing: -0.5px;
}

.puzzle-nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.puzzle-nav-link {
    color: var(--puzzle-text-medium);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    transition: var(--puzzle-transition);
    position: relative;
}

.puzzle-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--puzzle-primary), var(--puzzle-secondary));
    border-radius: 3px;
    transition: var(--puzzle-transition);
    transform: translateX(-50%);
}

.puzzle-nav-link:hover::after {
    width: 80%;
}

.puzzle-nav-link:hover {
    color: var(--puzzle-primary);
    background-color: rgba(108, 92, 231, 0.05);
}

.puzzle-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Puzzle Buttons - Playful and Rounded */
.puzzle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--puzzle-transition);
    font-family: 'Nunito', sans-serif;
    position: relative;
    overflow: hidden;
}

.puzzle-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.6s;
}

.puzzle-btn:hover::before {
    left: 100%;
}

.puzzle-btn-primary {
    background: linear-gradient(135deg, var(--puzzle-primary), var(--puzzle-primary-light));
    color: white;
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
}

.puzzle-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(108, 92, 231, 0.4);
}

.puzzle-btn-secondary {
    background: white;
    color: var(--puzzle-primary);
    border: 2px solid var(--puzzle-primary);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.1);
}

.puzzle-btn-secondary:hover {
    background: rgba(108, 92, 231, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.2);
}

.puzzle-btn-accent {
    background: linear-gradient(135deg, var(--puzzle-accent), #ff7675);
    color: white;
    box-shadow: 0 8px 25px rgba(253, 121, 168, 0.3);
}

.puzzle-btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

/* Puzzle Hero Section - Light and Airy */
.puzzle-hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.03) 0%, rgba(0, 206, 201, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-logo-large {
    margin-bottom: 3rem;
}

.hero-logo-image {
    height: 200px;
    width: auto;
    filter: drop-shadow(0 15px 35px rgba(108, 92, 231, 0.2));
    animation: float-gentle 6s ease-in-out infinite;
}

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

.hero-title {
    font-family: 'Comic Neue', 'Nunito', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--puzzle-primary);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--puzzle-text-medium);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

/* Puzzle Features - Card Style */
.puzzle-features {
    padding: 6rem 0;
}

.section-title {
    font-family: 'Comic Neue', 'Nunito', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--puzzle-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--puzzle-text-medium);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--puzzle-bg-card);
    border-radius: var(--puzzle-border-radius);
    padding: 3rem 2rem;
    box-shadow: var(--puzzle-box-shadow);
    transition: var(--puzzle-transition);
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--puzzle-primary), var(--puzzle-secondary));
    border-radius: 5px 5px 0 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--puzzle-box-shadow-lg);
    border-color: rgba(108, 92, 231, 0.2);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--puzzle-primary), var(--puzzle-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--puzzle-text-dark);
}

.feature-card p {
    color: var(--puzzle-text-medium);
    line-height: 1.7;
}

/* Puzzle Showcase - Game Categories */
.puzzle-showcase {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.02) 0%, rgba(0, 206, 201, 0.02) 100%);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.showcase-card {
    background: var(--puzzle-bg-card);
    border-radius: var(--puzzle-border-radius);
    overflow: hidden;
    box-shadow: var(--puzzle-box-shadow);
    transition: var(--puzzle-transition);
    border: 2px solid transparent;
}

.showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--puzzle-box-shadow-lg);
    border-color: rgba(108, 92, 231, 0.2);
}

.showcase-image {
    height: 200px;
    background: linear-gradient(135deg, var(--puzzle-primary), var(--puzzle-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
}

.showcase-content {
    padding: 2rem;
}

.showcase-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--puzzle-text-dark);
}

.showcase-content p {
    color: var(--puzzle-text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.showcase-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--puzzle-success);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Coming Soon - Playful Design */
.coming-soon-section {
    padding: 6rem 0;
    text-align: center;
}

.coming-soon-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    background: var(--puzzle-bg-card);
    border-radius: var(--puzzle-border-radius);
    box-shadow: var(--puzzle-box-shadow);
    border: 3px dashed rgba(108, 92, 231, 0.3);
}

.coming-soon-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    color: var(--puzzle-primary);
    animation: pulse-gentle 2s infinite;
}

@keyframes pulse-gentle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.coming-soon-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--puzzle-text-dark);
}

.coming-soon-content p {
    font-size: 1.3rem;
    color: var(--puzzle-text-medium);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(0, 206, 201, 0.05));
}

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

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--puzzle-primary);
}

.cta-content p {
    font-size: 1.3rem;
    color: var(--puzzle-text-medium);
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* Puzzle Footer */
.puzzle-footer {
    padding: 4rem 0 2rem;
    background: var(--puzzle-bg-lighter);
    border-top: 2px solid rgba(108, 92, 231, 0.1);
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-image {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 5px 15px rgba(108, 92, 231, 0.1));
}

.footer-tagline {
    color: var(--puzzle-text-medium);
    font-size: 1.1rem;
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--puzzle-text-dark);
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--puzzle-text-medium);
    text-decoration: none;
    transition: var(--puzzle-transition);
}

.footer-links a:hover {
    color: var(--puzzle-primary);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(108, 92, 231, 0.1);
    text-align: center;
    color: var(--puzzle-text-light);
    font-size: 0.9rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: white;
    color: var(--puzzle-primary);
    border: 2px solid var(--puzzle-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--puzzle-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.lang-btn:hover {
    background: rgba(108, 92, 231, 0.05);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .puzzle-nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .puzzle-nav-menu {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .puzzle-nav-link {
        text-align: center;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .puzzle-logo-text {
        font-size: 1.8rem;
    }
    
    .puzzle-logo-image {
        height: 50px;
    }
    
    .hero-logo-image {
        height: 150px;
    }
    
    .puzzle-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--puzzle-bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--puzzle-primary), var(--puzzle-primary-light));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--puzzle-primary-light), var(--puzzle-secondary));
}

/* Puzzle Piece Decoration */
.puzzle-piece {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 206, 201, 0.1));
    border-radius: 25px;
    z-index: 1;
    animation: rotate-slow 20s infinite linear;
}

@keyframes rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth Page Transitions */
.page-transition {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}