/* ===== IMPORTAÇÕES EXTERNAS ===== */
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

/* style.css - Estilos globais do WildWorld MMO */
/* ===== VARIÁVEIS GLOBAIS ===== */
:root {
    /* Cores principais */
    --primary-dark: #1a1a2e;
    --secondary-dark: #16213e;
    --accent-color: #00ff88;
    --pokemon-red: #ff0000;
    --pokemon-blue: #3b4cca;
    --pokemon-yellow: #ffde00;
    
    /* Cores de tipo (para criaturas) */
    --type-grass: #78C850;
    --type-fire: #F08030;
    --type-water: #6890F0;
    --type-electric: #F8D030;
    --type-psychic: #F85888;
    --type-ice: #98D8D8;
    --type-dragon: #7038F8;
    --type-dark: #705848;
    --type-fairy: #EE99AC;
    --type-normal: #A8A878;
    --type-fighting: #C03028;
    --type-flying: #A890F0;
    --type-poison: #A040A0;
    --type-ground: #E0C068;
    --type-rock: #B8A038;
    --type-bug: #A8B820;
    --type-ghost: #705898;
    --type-steel: #B8B8D0;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    --gradient-warning: linear-gradient(135deg, var(--pokemon-yellow), #ff8c00);
    --gradient-success: linear-gradient(135deg, var(--accent-color), #00cc66);
    
    --bs-secondary-color: inherit !important;
}

/* ===== RESET E ESTILOS BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--gradient-primary);
    color: #fff;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== LAYOUT E CONTAINERS ===== */
.container {
    max-width: 1200px;
}

/* Hero Section (para index.php) */
.hero-section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95)),
                url('../images/wildworld-bg.jpg') center/cover;
    border-radius: 0 0 30px 30px;
    margin-bottom: 30px;
    padding: 60px 0;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.display-4 {
    font-size: 3.5rem;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(90deg, #ffd700, #ff8c00, #ff4500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

.text-pink {
    color: #ff6b9d !important;
}

/* ===== CARDS ===== */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s;
}

.card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.card-body {
    color: var(--bs-card-bg);
}

.login-card, .register-card {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    overflow: hidden;
}

.creation-card {
    border: 2px solid var(--accent-color);
}

/* ===== BOTÕES ===== */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

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

.btn-warning {
    background: var(--pokemon-yellow);
    border-color: var(--pokemon-yellow);
    color: #000 !important;
}

.btn-success {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

.btn-info {
    background: var(--pokemon-blue);
    border-color: var(--pokemon-blue);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== FORMULÁRIOS ===== */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
    padding: 12px 15px;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 136, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-text {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ===== BADGES ===== */
.badge {
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 600;
}

/* Badges de tipo de criatura */
.bg-type-grass { background: linear-gradient(135deg, var(--type-grass), #5AAE3A) !important; }
.bg-type-fire { background: linear-gradient(135deg, var(--type-fire), #D06010) !important; }
.bg-type-water { background: linear-gradient(135deg, var(--type-water), #4A70D0) !important; }
.bg-type-electric { background: linear-gradient(135deg, var(--type-electric), #DAB010) !important; color: #000 !important; }
.bg-type-psychic { background: linear-gradient(135deg, var(--type-psychic), #D83868) !important; }
.bg-type-ice { background: linear-gradient(135deg, var(--type-ice), #7AB8B8) !important; }
.bg-type-dragon { background: linear-gradient(135deg, var(--type-dragon), #5218D8) !important; }
.bg-type-dark { background: linear-gradient(135deg, var(--type-dark), #523828) !important; }
.bg-type-fairy { background: linear-gradient(135deg, var(--type-fairy), #D0798C) !important; }
.bg-type-normal { background: linear-gradient(135deg, var(--type-normal), #8A8858) !important; }
.bg-type-fighting { background: linear-gradient(135deg, var(--type-fighting), #A21008) !important; }
.bg-type-flying { background: linear-gradient(135deg, var(--type-flying), #8A70D0) !important; }
.bg-type-poison { background: linear-gradient(135deg, var(--type-poison), #822082) !important; }
.bg-type-ground { background: linear-gradient(135deg, var(--type-ground), #C2A048) !important; }
.bg-type-rock { background: linear-gradient(135deg, var(--type-rock), #9A8018) !important; }
.bg-type-bug { background: linear-gradient(135deg, var(--type-bug), #8A9800) !important; }
.bg-type-ghost { background: linear-gradient(135deg, var(--type-ghost), #523878) !important; }
.bg-type-steel { background: linear-gradient(135deg, var(--type-steel), #9A98B0) !important; }

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: bold;
    color: var(--pokemon-yellow) !important;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(26, 26, 46, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.alert-danger {
    background: rgba(255, 0, 68, 0.1);
    border: 1px solid rgba(255, 0, 68, 0.3);
    color: #ff0044;
}

.alert-warning {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.alert-info {
    background: rgba(59, 76, 202, 0.1);
    border: 1px solid rgba(59, 76, 202, 0.3);
    color: #3b4cca;
}

/* ===== MODAIS ===== */
.modal-content {
    background: var(--primary-dark);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Estilos específicos do modal de logout */
.modal.fade .modal-dialog {
    animation: modalSlideIn 0.3s ease-out;
}

#logoutModal .modal-title {
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

#logoutModal .display-1 {
    animation: pulse 2s infinite;
}

/* ===== PROGRESS BARS ===== */
.progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 10px;
}

.progress-bar {
    border-radius: 10px;
}

.progress-bar-animated {
    animation: progress-animation 2s ease-in-out infinite;
}

@keyframes progress-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== TABELAS ===== */
.table {
    color: #fff;
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, 0.1);
}

.table-dark {
    background: rgba(255, 255, 255, 0.03);
}

.table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ===== COMPONENTES ESPECÍFICOS ===== */

/* Stat Bubbles (dashboard) */
.stat-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 20px 10px;
    transition: all 0.3s;
}

.stat-bubble:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

.stat-number {
    color: var(--pokemon-yellow);
    font-weight: bold;
}

.stat-label {
    color: #aaa;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Trainer Cards (dashboard) */
.trainer-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.trainer-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.trainer-card-sm {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s;
}

.trainer-card-sm:hover {
    transform: scale(1.05);
    border-color: var(--pokemon-blue);
}

/* Creature Cards */
.creature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid transparent;
    border-radius: 15px;
    transition: all 0.3s;
    overflow: hidden;
}

.creature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.1);
}

.creature-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 120px;
    padding: 10px;
    border-radius: 8px;
}

/* Starter Cards (criação de personagem) */
.starter-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s;
    height: 100%;
    cursor: pointer;
}

.starter-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.type-leaf .starter-header { background: rgba(120, 200, 80, 0.2); }
.type-fire .starter-header { background: rgba(240, 128, 48, 0.2); }
.type-water .starter-header { background: rgba(104, 144, 240, 0.2); }
.type-electric .starter-header { background: rgba(248, 208, 48, 0.2); }

.btn-check:checked + label + .starter-card,
.btn-check:checked ~ .starter-card {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color);
}

/* Feature Cards (index) */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px 20px;
    transition: all 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--pokemon-yellow);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* Step Cards (tutoriais) */
.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px 20px;
    transition: all 0.3s;
    text-align: center;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--pokemon-yellow);
    color: #000;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Daily Rewards */
.daily-reward {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s;
}

.daily-reward:hover {
    transform: scale(1.05);
}

/* Event Cards */
.event-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
}

.event-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Pricing Options */
.pricing-option {
    transition: all 0.3s;
    border-radius: 10px;
    padding: 20px;
}

.pricing-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Recent Captures */
.recent-capture {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s;
}

.recent-capture:hover {
    background: rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.3);
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Animações do modal de logout */
@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

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

/* ===== UTILITÁRIOS ===== */
.cursor-pointer {
    cursor: pointer;
}

.rounded-lg {
    border-radius: 20px !important;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.bg-purple {
    background-color: #9013FE !important;
}

.text-gradient {
    background: linear-gradient(90deg, var(--pokemon-yellow), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Color Picker */
.btn-color {
    border-radius: 50% !important;
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    border: 2px solid transparent !important;
}

.btn-check:checked + .btn-color {
    border-color: #fff !important;
    transform: scale(1.1);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.2rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .stat-bubble {
        padding: 15px 5px;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .feature-card, .step-card {
        padding: 20px 15px;
    }
    
    .trainer-card {
        padding: 15px;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card {
        border-radius: 10px;
    }
}