/* Base styles */
:root {
    --primary-color: #7289da;
    --primary-dark: #5b6eae;
    --secondary-color: #2c2f33;
    --accent-color: #99aab5;
    --light-color: #ffffff;
    --dark-color: #23272a;
    --gray-color: #f6f6f6;
    --text-color: #333333;
    --success-color: #43b581;
    --danger-color: #f04747;
    --warning-color: #faa61a;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;

    /* Theme transition */
    --transition-speed: 0.3s;
}

/* Light mode (default) variables */
.light-mode {
    --bg-color: #ffffff;
    --bg-alt-color: #f6f6f6;
    --text-color: #333333;
    --text-alt-color: #666666;
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --navbar-bg: #ffffff;
}

/* Dark mode variables */
.dark-mode {
    --bg-color: #1a1a1a;
    --bg-alt-color: #2c2f33;
    --text-color: #f0f0f0;
    --text-alt-color: #cccccc;
    --card-bg: #2c2f33;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --navbar-bg: #23272a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    position: relative;
}

.theme-toggle-track {
    width: 50px;
    height: 26px;
    border-radius: 13px;
    background-color: var(--secondary-color);
    position: relative;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.dark-mode .theme-toggle-track {
    background-color: var(--primary-color);
}

.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-mode .theme-toggle-thumb {
    transform: translateX(24px);
}

.theme-toggle-icon-light, .theme-toggle-icon-dark {
    color: white;
    font-size: 12px;
    transition: opacity 0.3s ease;
}

.theme-toggle-icon-light {
    opacity: 1;
}

.theme-toggle-icon-dark {
    opacity: 0.5;
}

.dark-mode .theme-toggle-icon-light {
    opacity: 0.5;
}

.dark-mode .theme-toggle-icon-dark {
    opacity: 1;
}

/* Animation for toggle button */
.theme-toggle.animate .theme-toggle-thumb {
    animation: bounce 0.5s;
}

@keyframes bounce {
    0%, 100% { transform: translateX(var(--translateX, 0)); }
    50% { transform: translateY(-5px) translateX(var(--translateX, 0)); }
}

.dark-mode .theme-toggle.animate {
    --translateX: 24px;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(114, 137, 218, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Navbar styles */
.navbar {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    background-color: var(--navbar-bg);
    z-index: 1000;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.login-btn {
    background-color: var(--primary-color);
    color: var(--light-color) !important;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
}

.login-btn:hover {
    background-color: var(--primary-dark);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--light-color);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    width: 50%;
}

.hero-image {
    width: 45%;
    text-align: right;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.server-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

.server-count strong {
    font-size: 1.2rem;
    margin: 0 0.5rem;
}

/* Features section */
.features {
    padding: 5rem 0;
    background-color: var(--bg-alt-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px var(--shadow-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(114, 137, 218, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-alt-color);
}

/* Commands section */
.commands {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.commands-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.commands-list {
    width: 55%;
}

.command-preview {
    width: 40%;
}

.command-preview img {
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.command-item {
    background-color: var(--bg-alt-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.command-item:hover {
    transform: translateX(10px);
    background-color: rgba(114, 137, 218, 0.1);
}

.command-name {
    font-family: monospace;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 1.5rem;
    font-size: 1.1rem;
    min-width: 80px;
}

.command-description {
    color: var(--text-color);
}

.commands-cta {
    text-align: center;
}

/* Premium section */
.premium {
    padding: 5rem 0;
    background-color: var(--bg-alt-color);
}

.premium-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
    color: var(--text-alt-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 6px var(--shadow-color);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px var(--shadow-color);
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    z-index: 1;
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom-left-radius: var(--border-radius-sm);
}

.pricing-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price span {
    font-size: 1rem;
    opacity: 0.7;
    font-weight: normal;
}

.pricing-header p {
    font-size: 0.9rem;
    color: var(--text-alt-color);
}

.pricing-features {
    padding: 2rem;
}

.pricing-features li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-color);
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
}

.pricing-card .btn {
    display: block;
    margin: 0 2rem 2rem;
}

/* Support section */
.support {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.support .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.support-content {
    width: 50%;
}

.support-image {
    width: 45%;
}

.support-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.support-content .section-title {
    text-align: left;
}

.support-content .section-title::after {
    left: 0;
    transform: none;
}

.support-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.support-buttons {
    display: flex;
    gap: 1rem;
}

/* Footer styles */

/* Footer styles */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-info {
    width: 30%;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 30px;
    margin-right: 0.5rem;
}

.footer-info p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-links {
    display: flex;
    width: 65%;
    justify-content: space-between;
}

.footer-link-group h4 {
    margin-bottom: 1.5rem;
    color: var(--light-color);
}

.footer-link-group ul li {
    margin-bottom: 0.8rem;
}

.footer-link-group ul li a {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-link-group ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.language-selector select {
    background-color: transparent;
    color: var(--light-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero .container, 
    .support .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content, 
    .support-content {
        width: 100%;
        margin-bottom: 3rem;
    }
    
    .hero-image, 
    .support-image {
        width: 80%;
    }
    
    .support-content .section-title {
        text-align: center;
    }
    
    .support-content .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .support-buttons {
        justify-content: center;
    }
    
    .commands-wrapper {
        flex-direction: column;
    }
    
    .commands-list, 
    .command-preview {
        width: 100%;
    }
    
    .command-preview {
        order: -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--light-color);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: var(--shadow-md);
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }

}

/* Terms of Service styles */
.terms {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.terms-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 6px var(--shadow-color);
    color: var(--text-color);
}

.terms-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.5rem;
}

.terms-content p {
    margin-bottom: 1.5rem;
    color: var(--text-alt-color);
    line-height: 1.8;
}

.terms-content p:last-child {
    margin-bottom: 0;
}

/* Admin dashboard styles */
.admin-login {
    padding: 5rem 0;
    background-color: var(--bg-color);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.login-container {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 6px var(--shadow-color);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.login-container p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

#discord-login {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 10px;
    padding: 12px 30px;
}

/* Admin Dashboard */
.admin-dashboard {
    padding: 3rem 0;
    background-color: var(--bg-color);
    min-height: 70vh;
}

.server-selector {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.server-selector label {
    font-weight: 500;
    color: var(--text-color);
}

.select-styled {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem;
    font-size: 1rem;
    color: var(--text-color);
    min-width: 250px;
}

.dashboard-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-weight: 500;
    color: var(--text-alt-color);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.settings-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    margin-bottom: 2rem;
}

.settings-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
}

.checkbox-group label {
    margin: 0;
}

.toggle-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--bg-alt-color);
    border-radius: var(--border-radius-sm);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--card-bg);
    min-width: 120px;
    box-shadow: 0 4px 6px var(--shadow-color);
    border-radius: var(--border-radius-sm);
    z-index: 1;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    color: var(--text-color) !important;
}

.dropdown-content a:hover {
    background-color: var(--bg-alt-color);
}

.user-dropdown:hover .dropdown-content {
    display: block;
}