/* ==========================================
   DEMOS PAGE REDESIGN - NECROBATICS CS:S
   Modern Epic Design with Consistent Colors
   ========================================== */

/* Override existing demo filters */
.demo-filters {
    background: rgba(10, 10, 15, 0.8) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 16px !important;
    padding: 2rem;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.demo-filters:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.15) !important;
}

.filters-header {
    border-bottom: 1px solid rgba(0, 212, 255, 0.2) !important;
}

.filters-header h3 {
    font-family: 'Orbitron', sans-serif !important;
    color: var(--primary-color) !important;
}

.filters-header i {
    color: var(--accent-color) !important;
}

.filter-stats {
    background: rgba(0, 212, 255, 0.1) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
}

/* Override filter inputs */
.filter-group input,
.filter-group select {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    color: var(--text-color) !important;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--primary-color) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3) !important;
}

.filter-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d4ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.filter-group select option {
    background: #0a0a0f !important;
    color: #ffffff !important;
    padding: 0.5rem;
}

/* Override demo table header */
.demo-table-header {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(6, 255, 165, 0.15)) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    font-family: 'Orbitron', sans-serif !important;
    color: var(--primary-color) !important;
}

/* Override loading and error states */
.demo-loading,
.demo-error {
    background: rgba(10, 10, 15, 0.8) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
}

.loading-spinner {
    border: 4px solid rgba(0, 212, 255, 0.2) !important;
    border-top: 4px solid var(--primary-color) !important;
}

/* Override demo row containers */
.demo-row-container {
    background: rgba(10, 10, 15, 0.8) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    backdrop-filter: blur(10px);
}

.demo-row-container:hover {
    border-color: rgba(0, 212, 255, 0.4) !important;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2) !important;
}

/* Demo Guide Section - Commands */
.demo-guide-section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.demo-commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.command-category {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.command-category:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.category-icon i {
    font-size: 1.8rem;
    color: var(--bg-dark);
}

.command-category h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.command-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.command-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.command-item code {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    display: inline-block;
}

.command-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.demo-tips-box {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: rgba(6, 255, 165, 0.1);
    border: 1px solid rgba(6, 255, 165, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.demo-tips-box i {
    font-size: 2rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.demo-tips-box strong {
    color: var(--accent-color);
}

.demo-tips-box code {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Submit Demo Section - Minimalist Redesign */
.submit-demo-section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.submit-demo-wrapper {
    max-width: 900px;
    margin: 3rem auto 0;
}

.submit-main-card {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.3s ease;
}

.submit-main-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.submit-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    margin-bottom: 2rem;
}

.submit-header i {
    font-size: 3rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.submit-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.submit-header p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.submit-criteria {
    margin-bottom: 2.5rem;
}

.submit-criteria h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.criteria-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.criteria-tags .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(6, 255, 165, 0.1);
    border: 1px solid rgba(6, 255, 165, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.criteria-tags .tag:hover {
    background: rgba(6, 255, 165, 0.15);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.criteria-tags .tag i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.submit-process {
    margin-bottom: 2.5rem;
}

.submit-process h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    flex: 1;
}

.step-num {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--bg-dark);
}

.step span:last-child {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.4;
}

.step-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0.5;
    flex-shrink: 0;
}

.submit-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.btn-submit-discord {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #7289da, #5865f2);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-submit-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(114, 137, 218, 0.5);
}

.btn-submit-discord i:first-child {
    font-size: 1.5rem;
}

.btn-submit-discord i:last-child {
    font-size: 1rem;
    opacity: 0.8;
}

.submit-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.submit-note strong {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
    .submit-main-card {
        padding: 2rem 1.5rem;
    }

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

    .submit-header i {
        font-size: 2.5rem;
    }

    .process-steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .criteria-tags {
        justify-content: center;
    }
}

/* Demo Tips Section */
.demo-tips-section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tip-card {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(6, 255, 165, 0.2);
}

.tip-card i {
    font-size: 2rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.tip-card h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.tip-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .demo-commands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .submit-demo-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .demo-commands-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .demo-tips-box {
        flex-direction: column;
    }

    .tip-card {
        flex-direction: column;
        text-align: center;
    }

    .tip-card i {
        font-size: 2.5rem;
    }
}

/* Demo Usage Section - Minimalist Redesign */
.demo-usage-section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.usage-steps-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.usage-step {
    position: relative;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.usage-step:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.usage-step-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: var(--bg-dark);
}

.usage-step-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.usage-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.usage-step:hover .usage-icon {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--primary-color);
}

.usage-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.usage-step-content h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.usage-step-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.usage-detail {
    margin-top: 0.5rem;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-left: 3px solid var(--accent-color);
    border-radius: 6px;
}

.usage-detail code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
}

@media (max-width: 1024px) {
    .usage-steps-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .usage-steps-wrapper {
        grid-template-columns: 1fr;
    }

    .usage-step {
        padding: 1.5rem;
    }
}
