/* ===========================================
   Spritz Bot - Global Styles
   =========================================== */

/* Base */
body {
    font-family: 'Inter', sans-serif;
}

/* Components */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #ffb347 0%, #ffcc80 100%);
    color: #181a20;
    box-shadow: 0 2px 12px #ffb34733;
    z-index: 1;
}
.btn .btn-inner-anim {
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.08) 60%, transparent 100%);
    transition: opacity 0.35s cubic-bezier(.4,2,.6,1);
}
.btn:hover .btn-inner-anim,
.btn:focus .btn-inner-anim {
    opacity: 1;
}
.btn:hover, .btn:focus {
    background: linear-gradient(90deg, #ffe29f 0%, #ffb347 100%);
    color: #10131a !important;
    box-shadow: 0 8px 32px 0 #ffb34755, 0 2px 8px #10131a33;
    transform: translateY(-2px) scale(1.04) rotate(0.5deg);
}
.btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px #ffb34733;
}

.command-card h4 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fb923c;
    margin-bottom: 0.5rem;
}
.command-card .syntax,
.command-card .example {
    color: #9ca3af;
    font-size: 0.875rem;
}
.command-card .permission {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.25rem 0.75rem;
    color: white;
    font-size: 0.75rem;
    border-radius: 9999px;
}

.changelog-entry h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fb923c;
    margin-bottom: 0.75rem;
}

.faq-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fb923c;
    margin-bottom: 0.5rem;
}

.support-contact p a {
    color: #fb923c;
}
.support-contact p a:hover {
    text-decoration: underline;
}

/* CSS Variables */
:root {
    --color-primary: #FF5722;
}

/* Hero Section */

/* Command Styles */
.command {
    display: inline-block;
    background: #23263a;
    color: #ffb347;
    font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', monospace;
    font-size: 1.08em;
    padding: 0.15em 0.6em;
    border-radius: 0.5em;
    margin-bottom: 0.2em;
    margin-right: 0.2em;
    letter-spacing: 0.5px;
}

/* Privacy Policy, Terms, and Cookie Policy Styles */
#privacy-policy .bg-gray-800,
#terms-of-services .bg-gray-800,
#cookie-policy .bg-gray-800 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 2.5rem 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 6px 32px #10131a33;
}

#privacy-policy h1,
#terms-of-services h2,
#cookie-policy h2 {
    color: #ffb347;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

#privacy-policy h3,
#terms-of-services h3,
#cookie-policy h3 {
    color: #ffb347;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

#privacy-policy h5,
#terms-of-services h5,
#cookie-policy h5 {
    color: #ffe29f;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

#privacy-policy ul,
#terms-of-services ul,
#cookie-policy ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

#privacy-policy li,
#terms-of-services li,
#cookie-policy li {
    margin-bottom: 0.5rem;
    color: #e5e7eb;
    font-size: 1rem;
}

#privacy-policy p,
#terms-of-services p,
#cookie-policy p {
    color: #e5e7eb;
    font-size: 1.08rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

#terms-of-services .terms-section {
    border-left: 4px solid #ffb347;
    padding-left: 1.2rem;
    margin-bottom: 2rem;
    background: rgba(255,179,71,0.03);
    border-radius: 0.5rem;
}

#terms-of-services .terms-section-title {
    color: #ffb347;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Embed Creator Styles */
.embed-preview {
    background: #2f3136;
    border-radius: 32px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px #10131a55;
}

.embed-card {
    background: #36393f;
    border-left: 4px solid #ea3d03;
    border-radius: 4px;
    padding: 16px;
    max-width: 520px;
    transition: border-color 0.3s ease;
}

.embed-author {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.embed-author-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.embed-author-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.embed-title {
    color: #00b0f4;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    cursor: pointer;
}

.embed-title:hover {
    text-decoration: underline;
}

.embed-description {
    color: #dcddde;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.embed-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
    float: right;
    margin-left: 16px;
    margin-bottom: 8px;
}

.embed-footer {
    color: #72767d;
    font-size: 12px;
    margin-top: 8px;
    clear: both;
}

.controls-panel {
    background: linear-gradient(120deg, #181a20 0%, #23263a 100%);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 8px 32px #10131a55;
}

.controls-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffb347;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #ffb34722;
}

.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffb347;
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #36393f;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #2f3136;
    color: #dcddde;
}

.input-field:focus {
    outline: none;
    border-color: #ffb347;
    box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.1);
}

textarea.input-field {
    resize: vertical;
    min-height: 80px;
}

.color-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.color-preview {
    width: 50px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid #36393f;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-preview:hover {
    transform: scale(1.05);
}

.color-preview input[type="color"] {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-secondary {
    background: linear-gradient(90deg, #36393f 0%, #2f3136 100%);
    color: #ffb347 !important;
    border: 2px solid #ffb347;
}

.btn-secondary:hover {
    background: linear-gradient(90deg, #2f3136 0%, #36393f 100%);
    transform: translateY(-2px) scale(1.04);
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #1a1d29 0%, #2d1b2e 100%);
    overflow: hidden;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 179, 71, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    background: linear-gradient(135deg, #ffb347 0%, #ff8c42 50%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 179, 71, 0.3)); }
    50% { filter: drop-shadow(0 0 30px rgba(255, 179, 71, 0.5)); }
}

.hero-description {
    color: #cbd5e1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 179, 71, 0.2), transparent 70%);
    filter: blur(40px);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-image {
    position: relative;
    z-index: 1;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(255, 179, 71, 0.3);
}

/* Features Section */
.features-section {
    background: linear-gradient(to bottom, #0f1117, #1a1d29);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.6) 0%, rgba(26, 32, 44, 0.8) 100%);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 179, 71, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffb347, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-item:hover::before {
    transform: translateX(100%);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 179, 71, 0.2);
    border-color: rgba(255, 179, 71, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    color: #ffb347;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: #cbd5e1;
    line-height: 1.6;
}

/* Commands Section */
.commands-section {
    background: linear-gradient(to bottom, #1a1d29, #0f1117);
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    background: rgba(45, 55, 72, 0.6);
    border: 1px solid rgba(255, 179, 71, 0.2);
    border-radius: 9999px;
    color: #cbd5e1;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 179, 71, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.category-tab:hover::before,
.category-tab.active::before {
    width: 300px;
    height: 300px;
}

.category-tab:hover,
.category-tab.active {
    background: linear-gradient(90deg, #ffb347 0%, #ff8c42 100%);
    color: #1a1d29;
    border-color: #ffb347;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 179, 71, 0.3);
}

.category-tab span {
    position: relative;
    z-index: 1;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.command-card {
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 179, 71, 0.1);
}

.command-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffb347, transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.command-card:hover::after {
    transform: scaleX(1);
}

.command-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 179, 71, 0.2);
    border-color: rgba(255, 179, 71, 0.3);
}

/* Changelogs Section */
.changelogs-section {
    background: linear-gradient(to bottom, #0f1117, #1a1d29);
}

.changelog-timeline {
    position: relative;
    padding-left: 2rem;
}

.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ffb347, transparent);
}

.changelog-entry {
    position: relative;
    margin-left: 1rem;
}

.changelog-entry::before {
    content: '';
    position: absolute;
    left: -2.75rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    background: #ffb347;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 179, 71, 0.5);
}

/* Support Section */
.support-section {
    background: linear-gradient(to bottom, #1a1d29, #0f1117);
}

.faq-grid {
    display: grid;
    gap: 1rem;
}

.faq-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 179, 71, 0.1);
}

.faq-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(255, 179, 71, 0.15);
    border-color: rgba(255, 179, 71, 0.3);
}

.support-contact {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.6) 0%, rgba(26, 32, 44, 0.8) 100%);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 179, 71, 0.2);
    margin-top: 2rem;
}

/* Navigation */
.navbar {
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 179, 71, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.mobile-menu {
    background: rgba(15, 17, 23, 0.98);
    backdrop-filter: blur(10px);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(45, 55, 72, 0.6);
    border: 1px solid rgba(255, 179, 71, 0.2);
    border-radius: 0.5rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-button:hover {
    background: rgba(255, 179, 71, 0.1);
    border-color: #ffb347;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(26, 32, 44, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 179, 71, 0.2);
    border-radius: 0.5rem;
    min-width: 150px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
}

.language-option:hover {
    background: rgba(255, 179, 71, 0.1);
    color: #ffb347;
}

.language-option.active {
    background: rgba(255, 179, 71, 0.15);
    color: #ffb347;
    font-weight: 600;
}

/* Privacy Policy & Terms Section */
.privacy-section,
.terms-section {
    background: linear-gradient(to bottom, #0f1117, #1a1d29);
}

.privacy-intro,
.terms-intro {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.6) 0%, rgba(26, 32, 44, 0.8) 100%);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 179, 71, 0.2);
    margin-bottom: 2rem;
}

.privacy-content,
.terms-content {
    background: rgba(26, 32, 44, 0.6);
    padding: 2rem;
    border-radius: 1rem;
}

.privacy-section-title,
.terms-section-title {
    color: #ffb347;
    border-bottom: 2px solid rgba(255, 179, 71, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.privacy-section-content,
.terms-section-content {
    color: #cbd5e1;
    line-height: 1.8;
}

.privacy-section-content ul,
.terms-section-content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-top: 0.5rem;
}

.privacy-section-content li,
.terms-section-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(to right, #0a0c10, #1a1d29, #0a0c10);
    border-top: 1px solid rgba(255, 179, 71, 0.1);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0f1117;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ffb347, #ff8c42);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ff8c42, #ff6b35);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #ffb347 0%, #ff8c42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid,
    .commands-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .embed-card {
        max-width: 100%;
    }

    .button-group {
        flex-direction: column;
    }

    .embed-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .controls-panel {
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    #privacy-policy .bg-gray-800,
    #terms-of-services .bg-gray-800,
    #cookie-policy .bg-gray-800 {
        padding: 1.2rem 0.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus States */
*:focus-visible {
    outline: 2px solid #ffb347;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none;
    }
}
