:root {
    /* Dark mode colors (default) */
    --bg-gradient-start: #1a202c;
    --bg-gradient-end: #2d3748;
    --card-bg: rgba(45, 55, 72, 0.95);
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e0;
    --border-color: #4a5568;
    --button-bg: #667eea;
    --button-text: white;
    --nav-link-color: #90cdf4;
    --nav-link-hover: rgba(144, 205, 244, 0.1);
    --command-section-bg: rgba(74, 85, 104, 0.3);
    --code-bg: rgba(102, 126, 234, 0.2);
}

[data-theme="light"] {
    /* Light mode colors */
    --bg-gradient-start: #667eea;
    --bg-gradient-end: #764ba2;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #333;
    --text-secondary: #4a5568;
    --border-color: #e2e8f0;
    --button-bg: #667eea;
    --button-text: white;
    --nav-link-color: #667eea;
    --nav-link-hover: #f0f0f0;
    --command-section-bg: rgba(240, 240, 240, 0.5);
    --code-bg: rgba(102, 126, 234, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Dark mode toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.logo-link {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
}

.logo {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Responsive design for mobile */
/* Extra large screens */
@media (min-width: 1600px) {
    .card {
        width: 92%;
        max-width: 1800px;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .card {
        width: 94%;
        max-width: 1600px;
    }
}

/* Medium screens */
@media (max-width: 1200px) {
    .card {
        width: 96%;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .logo {
        max-width: 150px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 10px;
    }
    
    .card {
        width: 96%;
        padding: 20px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .logo {
        max-width: 120px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .card {
        width: 98%;
        padding: 15px;
    }
}

/* Documentation specific styles */
.command-section {
    text-align: left;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--command-section-bg);
    border-radius: 8px;
    border-left: 4px solid var(--button-bg);
    transition: all 0.3s ease;
}

.command-section h3 {
    color: var(--button-bg);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.command-section p {
    margin: 8px 0;
    line-height: 1.5;
    color: var(--text-primary);
}

.command-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.command-section li {
    margin: 5px 0;
    line-height: 1.4;
    color: var(--text-primary);
}

.command-section code {
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.copy-emoji {
    opacity: 0.6;
    font-size: 0.8rem;
    margin-left: 8px;
    transition: opacity 0.2s ease;
}

.command-section h3:hover .copy-emoji {
    opacity: 1;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    background: var(--button-bg);
    color: var(--button-text);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary {
    background: var(--button-bg) !important;
    color: var(--button-text) !important;
    text-decoration: none !important;
}

.btn-primary:hover {
    background: #5a6fd8 !important;
    color: white !important;
}

/* Secondary button style */
.btn-secondary {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--nav-link-hover);
}

/* Success button style */
.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

/* Danger button style */
.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Button sizes */
.btn-small {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.125rem;
}

.card h2 {
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.card ul {
    text-align: left;
}

.card li {
    margin: 10px 0;
    line-height: 1.5;
}

/* Collapsible sections */
.collapsible-section {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.collapsible-header {
    background: var(--command-section-bg);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.collapsible-header:hover {
    background: var(--nav-link-hover);
}

.collapsible-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.collapsible-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.collapsible-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.collapsible-section.expanded .collapsible-content {
    max-height: 2000px;
    padding: 20px;
}

.collapsible-section.expanded .collapsible-toggle {
    transform: rotate(180deg);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.discord-login-btn {
    display: inline-block;
    background: #5865f2;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 20px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.discord-login-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

.discord-support-link {
    display: inline-block;
    background: #5865f2;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 10px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.discord-support-link:hover {
    background: #4752c4;
    transform: translateY(-1px);
}

.discord-bot-link {
    display: inline-block;
    background: #00d4aa;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 10px;
    margin-left: 10px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.discord-bot-link:hover {
    background: #00b894;
    transform: translateY(-1px);
}

.discord-bot-link.btn-large {
    padding: 12px 24px;
    font-size: 1rem;
    margin-top: 20px;
    margin-left: 0;
}

.error-message {
    background: #e74c3c;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bot-invite-info {
    margin-bottom: 30px;
}

.bot-features,
.bot-commands {
    text-align: left;
    margin: 20px 0;
}

.bot-features ul,
.bot-commands ul {
    list-style: none;
    padding: 0;
}

.bot-features li,
.bot-commands li {
    padding: 8px 0;
    border-bottom: 1px solid var(--nav-link-hover);
}

.bot-features li:last-child,
.bot-commands li:last-child {
    border-bottom: none;
}

.bot-commands code {
    background: var(--nav-link-hover);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.user-info {
    margin-bottom: 20px;
}

.user-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.nav-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.nav-links a {
    color: var(--nav-link-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-links a:hover {
    background-color: var(--nav-link-hover);
}

.guild-list {
    text-align: left;
    margin-top: 20px;
}

.guild-list ul {
    list-style: none;
    padding: 0;
}

.guild-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.guild-list li:last-child {
    border-bottom: none;
}
