/* ============================================
   USADreams Roleplay - Styles CSS
   ============================================ */

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

:root {
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --secondary: #22c55e;
    --secondary-hover: #16a34a;
    --orange: #ff6b35;
    --gold: #f7931e;
    --discord: #5865F2;
    --discord-hover: #4752C4;
    --background: #0f0f1a;
    --background-dark: #0a0a14;
    --card: #1a1a2e;
    --border: #2d2d44;
    --text: #ffffff;
    --text-muted: #9ca3af;
    --danger: #ef4444;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ============================================
   Header / Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    width: 40px;
    height: 40px;
}

.logo span {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--background-dark);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-muted);
    font-weight: 500;
}

.mobile-nav a:hover {
    color: var(--primary);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: var(--text);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
}

.btn-discord {
    background: var(--discord);
    color: var(--text);
}

.btn-discord:hover {
    background: var(--discord-hover);
}

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

.btn-outline:hover {
    background: rgba(34, 197, 94, 0.1);
}

.btn-gold {
    background: linear-gradient(135deg, var(--orange), var(--gold));
    color: var(--text);
}

.btn-gold:hover {
    opacity: 0.9;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem 2rem;
    background: linear-gradient(rgba(15, 15, 26, 0.7), rgba(15, 15, 26, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-logo {
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

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

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    animation: bounce 2s infinite;
}

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

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--background);
}

.section-darker {
    background: var(--background-dark);
}

.section-gradient {
    background: linear-gradient(180deg, var(--background) 0%, var(--card) 100%);
}

.section-sunset {
    background: linear-gradient(rgba(15, 15, 26, 0.8), rgba(15, 15, 26, 0.9)), url('../images/sunset-bg.jpg');
    background-size: cover;
    background-position: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* ============================================
   Discord Section
   ============================================ */
.discord-section {
    text-align: center;
}

.discord-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--discord);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

/* ============================================
   Accordion / Rules
   ============================================ */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--card);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.accordion-header .icon {
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-content-inner {
    padding: 0 1.5rem 1.5rem;
}

.rule-item {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text-muted);
}

.rule-item .num {
    color: var(--orange);
    font-weight: 700;
    min-width: 3rem;
}

/* ============================================
   VIP Cards / Boutique
   ============================================ */
.vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.vip-card {
    background: var(--card);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

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

.vip-card.popular {
    border: 2px solid var(--gold);
    box-shadow: 0 0 30px rgba(247, 147, 30, 0.3);
}

.vip-card-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.vip-card.basic .vip-card-header {
    border-bottom-color: var(--secondary);
}

.vip-card.gold .vip-card-header {
    border-bottom-color: var(--gold);
}

.vip-card.platinum .vip-card-header {
    border-bottom-color: #9ca3af;
}

.popular-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--orange), var(--gold));
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
}

.vip-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.vip-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.vip-price .amount {
    font-size: 3rem;
    font-weight: 800;
}

.vip-price .period {
    color: var(--text-muted);
}

.vip-features {
    padding: 1.5rem;
}

.vip-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.vip-features li .check {
    color: var(--secondary);
    font-weight: bold;
}

.vip-card.gold .vip-features li .check {
    color: var(--gold);
}

.vip-card-footer {
    padding: 0 1.5rem 1.5rem;
}

.vip-card-footer .btn {
    width: 100%;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.faq-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--text-muted);
}

/* ============================================
   Règlement Page - Sidebar Layout
   ============================================ */
.reglement-layout {
    display: flex;
    min-height: calc(100vh - 64px);
    padding-top: 64px;
}

.sidebar {
    width: 280px;
    background: var(--background-dark);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    padding: 1.5rem;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.sidebar-header img {
    width: 40px;
    height: 40px;
}

.sidebar-header h2 {
    font-size: 1rem;
}

.sidebar-header p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-nav {
    margin-bottom: 1.5rem;
}

.sidebar-nav-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: all 0.3s;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.sidebar-nav a.active {
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary);
}

.reglement-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    margin: -2rem -2rem 2rem -2rem;
}

.breadcrumb a:hover {
    color: var(--text);
}

.reglement-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.reglement-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.alert-warning {
    background: rgba(247, 147, 30, 0.1);
    border: 1px solid rgba(247, 147, 30, 0.3);
}

.alert-warning .alert-title {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.alert-info {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-info .alert-title {
    color: var(--secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-card {
    background: var(--card);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover,
.category-card.active {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
}

.category-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card h3 {
    font-size: 1rem;
}

.category-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.rules-detail {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.rules-detail-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rules-list .rule-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

/* ============================================
   Report Bug Form
   ============================================ */
.form-section {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-hint {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.form-hint.bug {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-hint.bug .hint-title {
    color: var(--danger);
}

.form-hint.suggestion {
    background: rgba(247, 147, 30, 0.1);
    border: 1px solid rgba(247, 147, 30, 0.3);
}

.form-hint.suggestion .hint-title {
    color: var(--gold);
}

.form-hint.info {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.form-hint.info .hint-title {
    color: var(--discord);
}

.form-hint ul {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
    list-style: disc;
}

.form-hint li {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.form-hint ol {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
}

.form-hint ol li {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.file-upload {
    border: 2px dashed var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-upload:hover {
    border-color: var(--primary);
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.file-upload p {
    color: var(--text-muted);
}

.file-upload .file-types {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.file-upload input[type="file"] {
    display: none;
}

.file-preview {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
}

.file-preview img {
    max-height: 200px;
    border-radius: 0.5rem;
}

.file-preview .remove-btn {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--danger);
    color: var(--text);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-box h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-card {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.contact-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--discord);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    text-align: center;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.contact-info-icon.purple {
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary);
}

.contact-info-icon.green {
    background: rgba(34, 197, 94, 0.2);
    color: var(--secondary);
}

.contact-info-icon.orange {
    background: rgba(247, 147, 30, 0.2);
    color: var(--gold);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--background-dark);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    width: 64px;
    height: 64px;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0.25rem 0;
    transition: color 0.3s;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast.success {
    border-color: var(--secondary);
}

.toast.error {
    border-color: var(--danger);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }
    
    .reglement-content {
        margin-left: 0;
    }
    
    .mobile-category-select {
        display: block;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-logo {
        width: 150px;
        height: 150px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .vip-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile category selector (hidden on desktop) */
.mobile-category-select {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-category-select {
        display: block;
    }
}
