/* ================================
   Drop Bear Games - Main Stylesheet
   ================================ */

/* CSS Variables */
:root {
    --primary-color: #4A3B6B;      /* Deep violet */
    --secondary-color: #F5B041;     /* Rich honey */
    --accent-color: #EC7063;        /* Coral pop */
    --dark-color: #1B1429;          /* Midnight purple */
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #6c757d;
    --gradient-primary: linear-gradient(135deg, #2D5A4A 0%, #4A8B6F 100%);
    --gradient-secondary: linear-gradient(135deg, #F4A261 0%, #F7C59F 100%);
    --font-primary: 'Nunito', sans-serif;
    --font-heading: 'Fredoka One', cursive;
    --transition: all 0.3s ease;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Custom Background Classes */
.bg-accent {
    background-color: var(--accent-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --light-color: #1a1a2e;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
}

[data-theme="dark"] body {
    background-color: #0f0f1a;
    color: var(--text-color);
}

[data-theme="dark"] .bg-light {
    background-color: #1a1a2e !important;
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] .contact-form-wrapper {
    background-color: #252540 !important;
}

[data-theme="dark"] .card {
    background-color: #252540;
    border-color: #3a3a5a;
}

[data-theme="dark"] .text-muted {
    color: #a0a0a0 !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #fff;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #1a1a2e;
    border-color: #3a3a5a;
    color: #e0e0e0;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: #1a1a2e;
    color: #e0e0e0;
}

[data-theme="dark"] .form-control::placeholder {
    color: #6c757d;
}

[data-theme="dark"] .platform-badge {
    background-color: #3a3a5a;
    color: #e0e0e0;
}

[data-theme="dark"] .accordion-item {
    background-color: #252540;
    border-color: #3a3a5a;
}

[data-theme="dark"] .accordion-button {
    background-color: #252540;
    color: #e0e0e0;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: rgba(236, 112, 99, 0.2);
    color: #fff;
}

[data-theme="dark"] .accordion-button::after {
    filter: invert(1);
}

[data-theme="dark"] .table {
    color: #e0e0e0;
}

[data-theme="dark"] .table-light {
    background-color: #3a3a5a;
    color: #e0e0e0;
}

[data-theme="dark"] .table-bordered {
    border-color: #3a3a5a;
}

[data-theme="dark"] .alert-warning {
    background-color: rgba(245, 176, 65, 0.2);
    border-color: rgba(245, 176, 65, 0.3);
    color: #F5B041;
}

[data-theme="dark"] .legal-content h2 {
    color: var(--accent-color);
}

[data-theme="dark"] .legal-content h3 {
    color: #e0e0e0;
}

/* Dark Mode Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.theme-toggle .bi-sun-fill {
    display: none;
}

[data-theme="dark"] .theme-toggle .bi-moon-fill {
    display: none;
}

[data-theme="dark"] .theme-toggle .bi-sun-fill {
    display: inline-block;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.brand-text {
    font-family: var(--font-heading);
}

/* Selection */
::selection {
    background: var(--secondary-color);
    color: var(--dark-color);
}

/* ================================
   Navigation
   ================================ */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar .brand-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 25px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 182, 39, 0.2);
    color: var(--secondary-color) !important;
}

/* ================================
   Hero Section
   ================================ */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.svg') repeat;
    opacity: 0.1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--light-color);
    border-radius: 50% 50% 0 0;
    transform: scaleX(1.5);
}

.hero-mascot {
    max-width: 400px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ================================
   About Section
   ================================ */
.about-image-wrapper {
    position: relative;
}

.about-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: var(--gradient-secondary);
    border-radius: 1.5rem;
    z-index: -1;
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ================================
   Games Section
   ================================ */
.game-card {
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.game-image-wrapper {
    position: relative;
    min-height: 400px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-image-wrapper img {
    object-fit: cover;
}

.game-badge {
    position: absolute;
    top: 20px;
    left: 20px;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

/* ================================
   Newsletter Section
   ================================ */
.newsletter-icon {
    font-size: 4rem;
    color: var(--secondary-color);
}

.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
}

.newsletter-form .btn {
    padding: 1rem 2rem;
    font-weight: 700;
}

/* ================================
   Contact Section
   ================================ */
.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-form-wrapper {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 182, 39, 0.25);
}

/* ================================
   Social Links
   ================================ */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    font-size: 1.25rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

/* Contact section social links */
#contact .social-link {
    background: var(--secondary-color);
    color: var(--dark-color);
}

#contact .social-link:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ================================
   Footer
   ================================ */
.footer {
    background: linear-gradient(to bottom, var(--dark-color), #0f0f1a);
}

.footer-links {
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* ================================
   Back to Top Button
   ================================ */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

#backToTop:hover {
    transform: translateY(-5px);
}

#backToTop.show {
    display: flex;
}

/* ================================
   Buttons
   ================================ */
.btn-warning {
    background: var(--gradient-secondary);
    border: none;
    color: var(--dark-color);
    font-weight: 700;
    transition: var(--transition);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 182, 39, 0.4);
    color: var(--dark-color);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 700;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* ================================
   Badges
   ================================ */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ================================
   Animations
   ================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   Responsive Styles
   ================================ */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-mascot {
        max-width: 280px;
        margin-top: 2rem;
    }
    
    .navbar-collapse {
        background: rgba(26, 26, 46, 0.98);
        padding: 1rem;
        border-radius: 1rem;
        margin-top: 1rem;
    }
    
    .d-flex.gap-3 {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .game-image-wrapper {
        min-height: 250px;
    }
    
    .about-decoration {
        display: none;
    }
    
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ================================
   Loading Animation
   ================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 182, 39, 0.3);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================
   Toast Notifications
   ================================ */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
}

.custom-toast {
    background: var(--dark-color);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.custom-toast.success {
    border-left: 4px solid #28a745;
}

.custom-toast.error {
    border-left: 4px solid #dc3545;
}

/* ================================
   Placeholder Images (for development)
   ================================ */
.placeholder-img {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

/* ================================
   Page Headers (for subpages)
   ================================ */
.page-header {
    background: var(--gradient-primary);
    padding-top: 120px;
    position: relative;
}

.page-header.bg-dark {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2a2a4e 100%);
}

/* ================================
   Legal Content Styles
   ================================ */
.legal-content h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    color: var(--dark-color);
}

.legal-content ul {
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ================================
   Support Page Styles
   ================================ */
.support-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* ================================
   FAQ Page Styles
   ================================ */
.accordion-button:not(.collapsed) {
    background-color: rgba(255, 182, 39, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 182, 39, 0.25);
    border-color: var(--secondary-color);
}

/* ================================
   Careers Page Styles
   ================================ */
.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ================================
   Press Kit Page Styles
   ================================ */
.sticky-lg-top {
    z-index: 100;
}
