/* RippleRealm Bot Documentation Styles */
/* Extends the main site theme with Discord bot specific styling */

/* Import main site variables and extend with bot-specific ones */
:root {
    /* Main site colors (inherited) */
    --primary-color: #6a0dad;
    --secondary-color: #4c1a9b;
    --accent-color: #a020f0;
    --text-primary: #ffffff;
    --text-secondary: #b8bcc8;
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-overlay: rgba(255, 255, 255, 0.05);
    --container-bg: rgba(255, 255, 255, 0.08);
    --container-border: rgba(255, 255, 255, 0.12);
    --shadow-light: rgba(106, 13, 173, 0.15);
    --shadow-medium: rgba(106, 13, 173, 0.25);
    --shadow-heavy: rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-card: linear-gradient(145deg, rgba(106, 13, 173, 0.2), rgba(160, 32, 240, 0.1));
    
    /* Discord-specific colors */
    --discord-blurple: #5865f2;
    --discord-green: #57f287;
    --discord-yellow: #fee75c;
    --discord-red: #ed4245;
    --discord-bg: #36393f;
    --discord-light-bg: #40444b;
    
    /* Bot-specific theme colors */
    --bot-primary: #7c3aed;
    --bot-secondary: #a855f7;
    --bot-success: #10b981;
    --bot-warning: #f59e0b;
    --bot-error: #ef4444;
    --bot-info: #06b6d4;
    
    /* Enhanced gradients */
    --gradient-discord: linear-gradient(135deg, var(--discord-blurple), var(--bot-primary));
    --gradient-success: linear-gradient(135deg, var(--bot-success), #059669);
    --gradient-warning: linear-gradient(135deg, var(--bot-warning), #d97706);
    --gradient-error: linear-gradient(135deg, var(--bot-error), #dc2626);
}

/* Global Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    background-image: 
        linear-gradient(135deg, var(--bg-overlay), var(--bg-overlay)),
        url('../images/dark_hunter_background.png');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation Header */
.header {
    position: relative;
    padding: 15px 20px 20px;
    background: var(--container-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--container-border);
    box-shadow: 0 8px 32px var(--shadow-heavy);
    margin-bottom: 20px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-logo {
    width: 48px;
    height: 48px;
    background: var(--gradient-discord);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 16px var(--shadow-light);
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px var(--shadow-medium);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-link span {
    position: relative;
    z-index: 2;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--container-bg);
    border: 1px solid var(--container-border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.back-button:hover {
    color: var(--text-primary);
    background: var(--gradient-card);
    transform: translateX(-2px);
}

.back-button i {
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-2px);
}

/* Main Content Layout */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-discord);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--container-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--container-border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px var(--shadow-light);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-medium);
    border-color: var(--accent-color);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-discord);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Interactive Cards */
.interactive-card {
    background: var(--container-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--container-border);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.interactive-card:hover::before {
    opacity: 1;
}

.interactive-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px var(--shadow-medium);
    border-color: var(--accent-color);
}

.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.card-info {
    flex: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.card-arrow {
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.interactive-card:hover .card-arrow {
    transform: translateX(4px);
    color: var(--accent-color);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.online {
    background: rgba(87, 242, 135, 0.2);
    color: var(--discord-green);
    border: 1px solid rgba(87, 242, 135, 0.3);
}

.status-badge.maintenance {
    background: rgba(245, 158, 11, 0.2);
    color: var(--bot-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.offline {
    background: rgba(239, 68, 69, 0.2);
    color: var(--bot-error);
    border: 1px solid rgba(239, 68, 69, 0.3);
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--container-border);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in {
    animation: slideInLeft 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .header-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .main-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 16px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--container-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Feature Link Buttons */
.feature-link {
    display: inline-block;
    background: var(--gradient-discord);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #7289da, #5865f2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-link:hover::before {
    opacity: 1;
}

.feature-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(114, 137, 218, 0.4);
    color: white;
    text-decoration: none;
}

.feature-link span {
    position: relative;
    z-index: 2;
}

/* Setup Guide Copy Button Fixes */
.setup-sections .copy-command {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.setup-sections .feature-card:hover .copy-command {
    pointer-events: auto;
}

.setup-sections .command-item {
    position: relative;
    padding: 12px;
    border-radius: 8px;
    background: var(--discord-bg);
    border: 1px solid var(--container-border);
    transition: all 0.3s ease;
}

.setup-sections .command-item:hover {
    background: var(--discord-light-bg);
    border-color: var(--accent-color);
}

.setup-sections .commands-grid {
    gap: 12px;
}

/* TOC Navigation Link Fixes */
.toc-section .feature-card {
    overflow: visible;
}

.toc-section .feature-card:hover {
    transform: none;
}

.toc-link {
    display: block;
    padding: 12px 16px;
    background: var(--discord-bg);
    border: 1px solid var(--container-border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.toc-link:hover {
    background: var(--discord-light-bg);
    border-color: var(--accent-color);
    color: var(--text-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.2);
}

.toc-grid {
    position: relative;
    z-index: 5;
}

.toc-section .feature-card::before {
    display: none;
}

.toc-section .feature-card:hover::before {
    display: none;
}
