/* static/css/style.css */

/* DataIntell Color Palette (from design doc) */
:root {
    --dataintell-purple: #7B1E7A;
    --dataintell-teal: #0A7373;
    --dataintell-orange: #FF6B35;
    --dataintell-gray: #333333;
    --dataintell-light-gray: #f8f9fa;
}
section[style*="padding: 50px"],
div[style*="padding: 50px"] {
    margin-top: 0 !important;
}
/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dataintell-gray);
    padding-top: 65px; /* ← increase from 30px to match navbar height */
}

/* Navbar - DataIntell Purple */
.bg-dataintell {
    background-color: var(--dataintell-purple) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
}

.navbar-brand i {
    color: var(--dataintell-orange);
}


.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--dataintell-orange) !important;
}

/* Buttons */
.btn-dataintell-orange {
    background-color: var(--dataintell-orange);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-dataintell-orange:hover {
    background-color: #e55a2b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.btn-dataintell-purple {
    background-color: var(--dataintell-purple);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-dataintell-purple:hover {
    background-color: #631a62;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(123, 30, 122, 0.3);
}

.btn-dataintell-teal {
    background-color: var(--dataintell-teal);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
}

.btn-dataintell-teal:hover {
    background-color: #085f5f;
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dataintell-purple) 0%, var(--dataintell-teal) 100%);
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-stats {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.hero-stats .stat-item {
    text-align: center;
    padding: 0.5rem;
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Section Titles */
.section-title {
    color: var(--dataintell-purple);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--dataintell-orange);
}

/* Project Cards */
.project-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(123, 30, 122, 0.2);
}

.project-card .card-title {
    color: var(--dataintell-purple);
    font-weight: 600;
    font-size: 1.1rem;
}

.project-card .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.badge-showcase {
    background-color: #FFD700;
    color: #333;
}

.badge-trending {
    background-color: var(--dataintell-orange);
}

.badge-new {
    background-color: var(--dataintell-teal);
}

/* Category Cards */
.category-card {
    border: 2px solid var(--dataintell-light-gray);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.category-card:hover {
    border-color: var(--dataintell-purple);
    background-color: var(--dataintell-light-gray);
    transform: translateY(-5px);
}

.category-card .category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card .category-name {
    font-weight: 600;
    color: var(--dataintell-purple);
    font-size: 1.1rem;
}

.category-card .category-count {
    color: var(--dataintell-gray);
    font-size: 0.9rem;
}

/* Search Bar */
.search-container {
    background-color: white;
    border-radius: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    margin-bottom: 2rem;
}

.search-container input {
    border: none;
    padding: 0.5rem 1rem;
}

.search-container input:focus {
    outline: none;
    box-shadow: none;
}

.search-container button {
    border-radius: 50px;
}

/* Trending Carousel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--dataintell-purple);
    border-radius: 50%;
    padding: 1.5rem;
}

/* Footer */
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--dataintell-orange) !important;
}

/* Forms */
.form-control:focus {
    border-color: var(--dataintell-purple);
    box-shadow: 0 0 0 0.2rem rgba(123, 30, 122, 0.25);
}

/* Alert customization */
.alert-success {
    background-color: #d4edda;
    border-color: var(--dataintell-teal);
    color: #155724;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}
/* Hub Item Links */
.hub-item-link {
    transition: all 0.3s ease;
}

.hub-item-link:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Activity Feed Items */
.activity-feed .activity-item {
    transition: all 0.3s ease;
}

.activity-feed .activity-item:hover {
    background-color: rgba(255,255,255,0.2) !important;
    transform: translateX(5px);
}

.activity-feed .activity-item i {
    opacity: 0.8;
}

/* Product Badge */
.badge.bg-warning {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Latest Research Cards Enhancement */
.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(123, 30, 122, 0.25);
}

/* ==========================================
   VALIDATION BADGES V2 - Compact & Icon-Focused
   ========================================== */

/* Badge Base Styles - More Compact */
.validation-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    white-space: nowrap;
}

.validation-badge i {
    font-size: 0.9rem;
}

/* Gold Badge - Human + AI Validated */
.badge-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-weight: 700;
}

.badge-gold:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    transform: translateY(-1px);
}

/* Silver Badge - Human Validated */
.badge-silver {
    background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 100%);
    color: #333;
    font-weight: 700;
}

.badge-silver:hover {
    box-shadow: 0 0 12px rgba(192, 192, 192, 0.5);
    transform: translateY(-1px);
}

/* Bronze Badge - AI Validated */
.badge-bronze {
    background: linear-gradient(135deg, #E6A157 0%, #CD7F32 100%);
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.badge-bronze:hover {
    box-shadow: 0 0 12px rgba(205, 127, 50, 0.5);
    transform: translateY(-1px);
}

/* AI Validating Badge (Processing) */
.badge-validating {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: #fff;
    font-weight: 600;
}

.badge-validating i {
    animation: spin 1s linear infinite;
}

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

/* Human Reviewing Badge */
.badge-reviewing {
    background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
    color: #fff;
    font-weight: 600;
}

/* Pending Badge */
.badge-pending {
    background: linear-gradient(135deg, #95A5A6 0%, #7F8C8D 100%);
    color: #fff;
    font-weight: 600;
}

/* Failed Badge */
.badge-failed {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    color: #fff;
    font-weight: 600;
}

/* Badge Container */
.validation-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

/* Confidence Score Display - Inline */
.confidence-score {
    display: inline;
    font-size: 0.7rem;
    opacity: 0.9;
}

/* Side Tab Design (for detail page) */
.validation-side-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px 0 0 8px;
    writing-mode: horizontal-tb;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: -3px 0 8px rgba(0,0,0,0.15);
}

.validation-side-tab.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
}

.validation-side-tab.silver {
    background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 100%);
    color: #333;
}

.validation-side-tab.bronze {
    background: linear-gradient(135deg, #E6A157 0%, #CD7F32 100%);
    color: #fff;
}

/* Validation Info Section (for detail page) */
.validation-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.validation-info-card h5 {
    color: #7B1E7A;
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.validation-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #7B1E7A;
}

.validation-detail i {
    font-size: 1.2rem;
    color: #7B1E7A;
    min-width: 20px;
}

.validation-detail-label {
    font-weight: 600;
    color: #333;
    min-width: 150px;
}

.validation-detail-value {
    color: #666;
}

/* What This Means Box */
.validation-meaning {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.validation-meaning strong {
    color: #1976D2;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.validation-meaning ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
    color: #555;
}

.validation-meaning li {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .validation-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
        gap: 4px;
    }
    
    .validation-badge i {
        font-size: 0.8rem;
    }
    
    .validation-badges {
        gap: 4px;
    }
    
    .validation-info-card {
        padding: 15px;
    }
    
    .validation-detail {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .validation-detail-label {
        min-width: auto;
    }
}

/* ── Project Cards — shared across platform ── */
.project-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(123, 30, 122, 0.15);
    border-color: #7B1E7A;
}

.project-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.score-badge {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

.score-gold   { background: linear-gradient(135deg, #FFD700, #FFA500); color: white; }
.score-silver { background: linear-gradient(135deg, #C0C0C0, #808080); color: white; }
.score-bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); color: white; }

.category-badge {
    background: #7B1E7A;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-list-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.project-list-item:hover {
    border-color: #7B1E7A;
    box-shadow: 0 4px 12px rgba(123, 30, 122, 0.1);
}