/* ===========================
   Variables CSS
   =========================== */
:root {
    --primary-color: #5865F2;
    --primary-hover: #4752C4;
    --background: #0a0a0a;
    --surface: #1a1a1a;
    --surface-hover: #252525;
    --text-primary: #ffffff;
    --text-secondary: #b9bbbe;
    --accent-manga: #e91e63;
    --accent-news: #00acee;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===========================
   Container
   =========================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* ===========================
   Header
   =========================== */
header {
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.avatar {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-manga));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin: 0;
}

/* ===========================
   Grille des Bots
   =========================== */
.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

/* ===========================
   Carte Bot
   =========================== */
.bot-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

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

.bot-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--surface-hover);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2);
}

.bot-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bot-header h2 {
    font-size: 2rem;
    font-weight: 600;
}

.bot-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ===========================
   Sections (Features, Permissions, Commands)
   =========================== */
.features,
.permissions,
.commands {
    margin-top: 0.5rem;
}

.features h3,
.permissions h3,
.commands h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.features ul,
.permissions ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.features li,
.permissions li {
    padding-left: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===========================
   Commandes
   =========================== */
.command-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.command {
    background: var(--background);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: var(--transition);
}

.command:hover {
    background: var(--surface-hover);
}

.command code {
    color: var(--primary-color);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1rem;
    font-weight: 600;
}

.command span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===========================
   Bouton d'ajout
   =========================== */
.add-bot-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(88, 101, 242, 0.3);
    margin-top: 1rem;
}

.add-bot-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(88, 101, 242, 0.4);
}

.add-bot-btn:active {
    transform: scale(0.98);
}

/* ===========================
   Footer
   =========================== */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid var(--surface);
    color: var(--text-secondary);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1200px) {
    .bots-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header-content {
        gap: 1.5rem;
    }

    .avatar {
        width: 70px;
        height: 70px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .bot-card {
        padding: 1.5rem;
    }

    .bot-header {
        flex-direction: column;
        text-align: center;
    }

    .bot-icon {
        width: 60px;
        height: 60px;
    }

    .bot-header h2 {
        font-size: 1.5rem;
    }

    .bots-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .avatar {
        width: 60px;
        height: 60px;
    }

    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .bot-card {
        padding: 1rem;
    }

    .add-bot-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
