/* themes/monadware/static/css/main.css */

/* ============================================
   MODERN GLOSSY DESIGN - SIMPLE VERSION
   Theme Colors: #0027FF, #00D2FF, #00FFFF, #000000, #0076FF
   ============================================ */

:root {
    /* Theme Colors */
    --theme-primary: #0027FF;
    --theme-secondary: #0076FF;
    --theme-accent: #00D2FF;
    --theme-cyan: #00FFFF;
    --theme-dark: #000000;
    --theme-gradient-start: #0027FF;
    --theme-gradient-mid: #0076FF;
    --theme-gradient-end: #00D2FF;

    /* Gray scale for text-muted */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Glossy Effects */
    --glossy-overlay: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    --glossy-highlight: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    --shadow-sm: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 30px rgba(0,210,255,0.3);
}

/* Base Styles */
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
    background: linear-gradient(180deg, #f8fafd 0%, #f0f4f9 100%);
    min-height: 100vh;
    color: #1a1a2e;
}

/* Modern Header - Navbar (No Animation) */
.navbar {
    background: linear-gradient(135deg, var(--theme-dark) 0%, #0a0a0a 100%) !important;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,210,255,0.3);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
}

/* Remove the shimmer animation - just keep a static border line */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-cyan), var(--theme-accent), var(--theme-primary));
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--theme-cyan) 0%, var(--theme-accent) 50%, var(--theme-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-shadow: 0 2px 4px rgba(0,210,255,0.2);
    transition: opacity 0.2s ease;
    letter-spacing: -0.5px;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 12px;
    transition: background-color 0.2s ease;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover {
    color: var(--theme-cyan) !important;
    background: rgba(0,210,255,0.1);
}

.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(0,39,255,0.2), rgba(0,210,255,0.1));
    color: var(--theme-cyan) !important;
    border: 1px solid rgba(0,210,255,0.3);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-cyan), var(--theme-primary));
    border-radius: 3px;
}

/* Dropdown Styling */
.dropdown-menu {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 1px solid rgba(0,210,255,0.2);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    margin-top: 8px;
}

.dropdown-item {
    color: rgba(255,255,255,0.85);
    border-radius: 10px;
    margin: 4px 8px;
    padding: 8px 16px;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(0,210,255,0.2), rgba(0,39,255,0.1));
    color: var(--theme-cyan);
}

/* Search Form Styling */
.navbar .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(0,210,255,0.3);
    border-radius: 30px;
    color: white;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.navbar .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--theme-cyan);
    box-shadow: 0 0 10px rgba(0,210,255,0.2);
    color: white;
}

.navbar .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.navbar .btn-outline-success {
    border-color: var(--theme-cyan);
    color: var(--theme-cyan);
    border-radius: 30px;
    transition: all 0.2s ease;
}

.navbar .btn-outline-success:hover {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-cyan));
    border-color: transparent;
    color: white;
}

/* Language Switcher Styling */
.language-switcher select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(0,210,255,0.3);
    border-radius: 30px;
    padding: 0.4rem 2rem 0.4rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.language-switcher select:hover {
    background: rgba(0,210,255,0.2);
    border-color: var(--theme-cyan);
}

.language-switcher::after {
    color: var(--theme-cyan);
}

.language-switcher select option {
    background: #1a1a2e;
    color: white;
}

/* ============================================
   FOOTER - Professional Simple Design
   ============================================ */
footer.bg-dark {
    background: linear-gradient(135deg, #050508 0%, #0a0a15 50%, #0f0f1a 100%) !important;
    border-top: 1px solid rgba(0,210,255,0.2);
    position: relative;
}

/* Remove animation, keep static top border */
footer.bg-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-cyan), var(--theme-accent), var(--theme-primary));
}

footer h5 {
    background: linear-gradient(135deg, var(--theme-cyan), var(--theme-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-cyan), var(--theme-primary));
    border-radius: 2px;
}

footer p, footer .text-white-50 {
    color: rgba(255,255,255,0.6) !important;
    line-height: 1.6;
}

/* Social links - no animation */
footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transition: background-color 0.2s ease;
    margin: 0 4px;
}

footer .social-links a:hover {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-cyan));
}

/* Newsletter Form Styling */
footer .input-group {
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    border: 1px solid rgba(0,210,255,0.2);
    transition: all 0.2s ease;
}

footer .input-group:focus-within {
    border-color: var(--theme-cyan);
    box-shadow: 0 0 10px rgba(0,210,255,0.1);
}

footer .form-control {
    background: transparent;
    border: none;
    color: white;
    border-radius: 50px;
    padding: 0.75rem 1rem;
}

footer .form-control:focus {
    background: transparent;
    box-shadow: none;
}

footer .btn-primary {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-cyan));
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

footer .btn-primary:hover {
    opacity: 0.9;
}

/* ============================================
   CARD & COMPONENT STYLING
   ============================================ */
.card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,210,255,0.1);
    border-radius: 20px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0,210,255,0.3);
}

.card-header {
    background: linear-gradient(135deg, rgba(0,39,255,0.05), rgba(0,210,255,0.05));
    border-bottom: 1px solid rgba(0,210,255,0.1);
    font-weight: 600;
}

/* Buttons Styling - No animation */
.btn-primary {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-cyan));
    border: none;
    border-radius: 12px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 2px solid var(--theme-cyan);
    color: var(--theme-primary);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-cyan));
    border-color: transparent;
    color: white;
}

/* Alert Styling */
.alert {
    border-radius: 16px;
    border: none;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, rgba(0,210,255,0.1), rgba(0,39,255,0.05));
    border-left: 4px solid var(--theme-cyan);
}

/* Pagination Styling */
.pagination .page-link {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,210,255,0.2);
    color: var(--theme-primary);
    border-radius: 10px;
    margin: 0 4px;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-cyan));
    color: white;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-cyan));
    border-color: transparent;
    color: white;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid rgba(0,210,255,0.2);
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.95);
}

.form-control:focus, .form-select:focus {
    border-color: var(--theme-cyan);
    box-shadow: 0 0 0 3px rgba(0,210,255,0.1);
}

/* Badge Styling */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 500;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-cyan)) !important;
}

/* Remove animations from cards - keep simple fade */
.card, .fade-in-up {
    animation: none;
}

/* Main Content Area */
main {
    min-height: 80vh;
}

/* Blog Content Styling */
.blog-content img {
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

/* Comment Section */
.comments-section .card {
    background: rgba(255,255,255,0.9);
    border-radius: 16px;
}

/* Scrollbar Styling - Keep */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-cyan));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--theme-primary);
}

/* Loading Spinner */
.spinner-border {
    border-top-color: var(--theme-cyan);
    border-right-color: var(--theme-primary);
}

/* Remove all animations */
.animated, 
.anim-fade-in, 
.anim-fade-up, 
.anim-scale-in,
.hover-grow,
.anim-hover-grow {
    animation: none !important;
    transform: none !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .card:hover {
        transform: translateY(-2px);
    }
    
    .btn-primary, .btn-outline-primary {
        border-radius: 10px;
        padding: 0.5rem 1.2rem;
    }
    
    footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    footer h5 {
        text-align: center;
        display: block;
    }
    
    footer .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(180deg, #0a0a0a 0%, #151520 100%);
        color: #e0e0e0;
    }
    
    .card {
        background: rgba(20,20,35,0.95);
    }
    
    .form-control, .form-select {
        background: rgba(20,20,35,0.95);
        color: #e0e0e0;
    }
    
    .modal-content {
        background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
    }
    
    .table {
        color: #e0e0e0;
    }
    
    .dropdown-menu {
        background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
    }
}

/* Custom Selection Color */
::selection {
    background: var(--theme-cyan);
    color: var(--theme-dark);
}

/* themes/monadware/static/css/main.css - Add these overrides */

/* ============================================
   TEXT COLOR OVERRIDES FOR THEME COLORS
   ============================================ */

/* Text Primary Override - Using theme gradient */
.text-primary {
    color: var(--theme-primary) !important;
}

/* Alternative: Gradient text primary (more premium look) */
.text-primary-gradient {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Text Primary on hover */
a.text-primary:hover,
a.text-primary:focus {
    color: var(--theme-accent) !important;
}

/* Text Muted Override - Softer color that complements the theme */
.text-muted {
    color: #6c757d !important;
}

/* Dark mode text-muted adjustment */
@media (prefers-color-scheme: dark) {
    .text-muted {
        color: #9ca3af !important;
    }
}

/* Theme-specific text colors */
.text-cyan {
    color: var(--theme-cyan) !important;
}

.text-accent {
    color: var(--theme-accent) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-cyan), var(--theme-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Link colors */
a:not(.btn) {
    color: var(--theme-primary);
    transition: color 0.2s ease;
}

a:not(.btn):hover {
    color: var(--theme-accent);
}

/* Heading with theme color */
h1, h2, h3, h4, h5, h6 {
    color: inherit;
}

/* Secondary text */
.text-secondary-custom {
    color: var(--theme-secondary) !important;
}

/* Light text for dark backgrounds */
.text-light-theme {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Small text */
.text-small {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Override Bootstrap's text-primary in specific contexts */
.btn-link.text-primary {
    color: var(--theme-primary) !important;
}

.btn-link.text-primary:hover {
    color: var(--theme-accent) !important;
}

/* Badge text colors */
.badge.bg-primary {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-cyan)) !important;
}

/* Alert text colors */
.alert-primary {
    background: linear-gradient(135deg, rgba(0,39,255,0.05), rgba(0,210,255,0.05));
    border-left: 4px solid var(--theme-primary);
    color: var(--theme-dark);
}

.alert-primary .alert-link {
    color: var(--theme-primary);
}

/* Form text colors */
.form-text {
    color: #6c757d;
}

/* Placeholder text */
::placeholder {
    color: #adb5bd !important;
    opacity: 1;
}

/* Disabled text */
.text-disabled {
    color: #adb5bd !important;
}

/* Code text colors */
code, pre {
    color: var(--theme-primary);
    background: rgba(0,39,255,0.05);
    border-radius: 6px;
    padding: 2px 6px;
}

/* Blockquote text */
blockquote {
    border-left: 3px solid var(--theme-primary);
    color: #6c757d;
    padding-left: 1rem;
}

/* Footer text colors override */
footer .text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

footer .text-white-50:hover {
    color: var(--theme-cyan) !important;
}

/* Navigation text colors */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

.navbar-nav .nav-link.active {
    color: var(--theme-cyan) !important;
}

/* Dropdown text colors */
.dropdown-item {
    color: rgba(255, 255, 255, 0.85)!important;
}

.dropdown-item:hover {
    color: var(--theme-cyan) !important;
}

/* Card text colors */
.card-title {
    color: var(--theme-dark);
}

.card-text {
    color: #6c757d;
}

/* Dark mode adjustments for text */
@media (prefers-color-scheme: dark) {
    .text-muted {
        color: #9ca3af !important;
    }
    
    .card-text {
        color: #9ca3af;
    }
    
    .alert-primary {
        color: #e0e0e0;
    }
    
    code, pre {
        background: rgba(0,210,255,0.1);
    }
    
    blockquote {
        color: #9ca3af;
    }
}

.text-gradient-primary {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}