/* ============================================
   Estilos Principales - 🌸Sakura Club py
   Inspirado en Studio Ghibli y Manga
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e11d74;
    --secondary-color: #6c5ce7;
    --accent-color: #ff2e63;
    --dark-bg: #f9f5f8;
    --light-bg: #fff7fb;
    --text-dark: #1f1f2e;
    --text-light: #3f3f5a;
    --border-color: #f0d9df;
    --shadow: 0 6px 18px rgba(63, 63, 90, 0.12);
    --shadow-hover: 0 10px 28px rgba(63, 63, 90, 0.18);
    --nav-text: #2b2d42;
    --link-text: #e11d74;
    --key-text: #5b5f97;
    --footer-bg: #1a1a2e;
    --footer-text: #f1f1f1;
    --footer-link: #ff2e63;
    --alert-special: #00b894;
    --alert-last: #fdcb6e;
    --alert-soldout: #ff2e63;
    --alert-info: #6c5ce7;
    --app-icon-size: 24px;
    --app-logo-size: 32px;
    --app-illustration-size: 96px;
    --sakura-grad-1: #fff3f6;
    --sakura-grad-2: #fde1ee;
    --sakura-grad-3: #f7c6d3;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Noto Serif JP', serif;
    background-color: var(--dark-bg);
    background-image:
        radial-gradient(1200px 600px at 10% -10%, var(--sakura-grad-2), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, var(--sakura-grad-1), transparent 55%),
        radial-gradient(800px 600px at 50% 10%, rgba(247, 198, 211, 0.35), transparent 60%),
        repeating-linear-gradient(45deg, transparent, transparent 16px, rgba(214, 107, 125, 0.04) 16px, rgba(214, 107, 125, 0.04) 32px);
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 16px;
    letter-spacing: 0.3px;
}

a {
    color: var(--link-text);
    text-decoration-color: rgba(225, 29, 116, 0.35);
    text-underline-offset: 3px;
}

a:hover {
    color: #c01564;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
}

h1 { color: #e11d74; }
h2 { color: #6c5ce7; }
h3 { color: #2b2d42; }

.text-muted {
    color: var(--text-light) !important;
}

.text-key {
    color: var(--key-text) !important;
}

.card {
    background: linear-gradient(180deg, #ffffff 0%, var(--light-bg) 100%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ff5c92);
    border: none;
    box-shadow: 0 3px 10px rgba(225, 29, 116, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #c01564, #ff4f88);
    box-shadow: 0 6px 16px rgba(225, 29, 116, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ff2e63, #ff6f8f);
    border: none;
    box-shadow: 0 3px 10px rgba(255, 46, 99, 0.25);
}

.btn-danger:hover,
.btn-danger:focus {
    background: linear-gradient(135deg, #e91e56, #ff5b80);
}

.btn-outline-secondary {
    color: var(--nav-text);
    border-color: #f3a9bf;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #1f1f2e;
    background-color: #fde8f1;
    border-color: #e98aa1;
}

.btn-outline-light {
    color: #fff5f8;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
}

.site-footer .text-light {
    color: var(--footer-text) !important;
}

.site-footer .text-muted {
    color: rgba(241, 241, 241, 0.7) !important;
}

.modal {
    z-index: 1080;
}

.modal-backdrop {
    z-index: 1070;
}

.site-footer a {
    color: var(--footer-link);
}

.site-footer a:hover {
    color: #ff6f8f;
}

/* Navigation text palette */
.navbar .nav-link,
.navbar .dropdown-item {
    color: var(--nav-text) !important;
}

.navbar .nav-link:hover,
.navbar .dropdown-item:hover {
    color: var(--link-text) !important;
}

.navbar .nav-link.active {
    color: var(--link-text) !important;
}

.navbar .btn,
.navbar .badge {
    color: #ffffff;
}

/* CTA button palette */
.btn-cta-ticket {
    background: #ff2e63;
    color: #ffffff;
    border: none;
}

.btn-cta-register {
    background: #6c5ce7;
    color: #ffffff;
    border: none;
}

.btn-cta-car {
    background: #00b894;
    color: #ffffff;
    border: none;
}

.btn-cta-cosplay {
    background: #fdcb6e;
    color: #ffffff;
    border: none;
}

/* FAQ palette */
.faq-question {
    color: var(--link-text);
}

.faq-answer {
    color: var(--text-light);
}

/* Alerts palette */
.alert-offer { color: var(--alert-special); }
.alert-last { color: var(--alert-last); }
.alert-soldout { color: var(--alert-soldout); }
.alert-info { color: var(--alert-info); }

.site-footer hr {
    border-color: rgba(255, 255, 255, 0.15);
}

.app-icon {
    width: var(--app-icon-size);
    height: var(--app-icon-size);
    object-fit: contain;
    display: inline-block;
}

.app-logo {
    width: var(--app-logo-size);
    height: var(--app-logo-size);
    object-fit: contain;
    display: inline-block;
}

.app-illustration {
    width: var(--app-illustration-size);
    height: var(--app-illustration-size);
    object-fit: contain;
    display: inline-block;
}

/* ==================== HEADER ==================== */
header {
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    padding: 1.5rem 0;
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

header .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(193, 102, 107, 0.1);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(193, 102, 107, 0.1);
}

.nav-menu a:hover::before {
    width: 80%;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container > h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.container > h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.container > p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ==================== NEWS & EVENTS GRID ==================== */
.news-grid,
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-item,
.event-item {
    background: linear-gradient(180deg, #ffffff 0%, var(--light-bg) 100%);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.news-item::before,
.event-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.news-item:hover,
.event-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-item h2,
.event-item h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    margin-top: 0.5rem;
}

.news-date,
.event-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-location {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.news-item p,
.event-item p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.news-item a,
.event-item a {
    display: inline-block;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color), #e98aa1);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(214, 107, 125, 0.25);
}

.news-item a:hover,
.event-item a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(193, 102, 107, 0.3);
}

/* ==================== CHAT ==================== */
#chat-container {
    background: linear-gradient(135deg, var(--light-bg), #ffffff);
    border-radius: 15px;
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 8px rgba(45, 52, 54, 0.05);
}

.message {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 3px;
}

.bot-message {
    background: var(--border-color);
    color: var(--text-dark);
    margin-right: auto;
    border-bottom-left-radius: 3px;
}

#message-input {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#message-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(193, 102, 107, 0.1);
}

#send-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(193, 102, 107, 0.2);
}

#send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(193, 102, 107, 0.3);
}

/* ==================== FOOTER ==================== */
footer {
    background: linear-gradient(135deg, var(--text-dark), #1e272e);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .container > h1 {
        font-size: 1.8rem;
    }
    
    .news-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item,
    .event-item {
        max-width: 100%;
    }
}
