/**
 * =============================================================================
 * SEEKRATES AI - UNIFIED STYLESHEET v5.0 (FINAL - GRADIENT BUTTON FIX)
 * =============================================================================
 * GPS Coordinate: fr_11_uc_02_ec_24_tc_003
 * Version: 5.0
 * Updated: 2025-12-10 (Gradient Button Style Applied)
 * Purpose: Single source of truth for all Seekrates AI styling
 * * **BRAND ALIGNMENT:** Uses colors and fonts from index_modified.html's <style>:root block.
 * =============================================================================
 */

/* =============================================================================
   1. GOOGLE FONTS IMPORT 
   ============================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Manrope:wght@400;500;600&display=swap');


/* =============================================================================
   2. CSS VARIABLES (ADOPTING INDEX_MODIFIED.HTML VARIABLES)
   ============================================================================= */
:root {
    /* Brand Colors from index_modified.html <style> block */
    --indigo: #0B1E3A;        /* Primary Dark Color (Header, Text) */
    --teal: #1CB5E0;          /* Secondary/Button Color */
    --charcoal: #101820;      /* Strong Text */
    --silver-mist: #F2F4F7;   /* Light Gray Page Background */
    --white: #FFFFFF;
    
    /* Mapped Variables for internal use */
    --color-primary: var(--indigo);
    --color-secondary: var(--teal);
    --color-text: var(--charcoal); 
    --color-background: var(--silver-mist); 
    
    /* **NEW/FIXED VARIABLE:** Gradient definition for the submit button */
    --gradient: linear-gradient(90deg, var(--teal) 0%, #0099cc 100%); 
    --gradient-hover: linear-gradient(90deg, #0099cc 0%, var(--teal) 100%);
    
    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Manrope', sans-serif;

    /* Layout & Dimensions */
    --max-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Shadows - Standard Modern Lift */
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
    --box-shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
}


/* =============================================================================
   3. BASE STYLES & TYPOGRAPHY
   ============================================================================= */
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background); 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* =============================================================================
   4. UTILITY CLASSES & LAYOUT
   ============================================================================= */
.seekrates-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* =============================================================================
   5. COMPONENT STYLES
   ============================================================================= */

/* Form Input Consistency (Unchanged) */
.form-control, .form-select {
    font-family: var(--font-body);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    box-shadow: none;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 0.25rem rgba(28, 181, 224, 0.25);
}

/* Primary Action Button - **FULLY REVISED** */
.submit-btn {
    /* **FIX:** Use the gradient background and remove border */
    background: var(--gradient);
    color: var(--white);
    border: none;
    
    /* **FIX:** Use the precise padding and large border-radius */
    padding: 14px 35px;
    border-radius: 25px; 
    
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* Maintain inline-flex layout for potential icons/spinners */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

/* **FIX:** Transient/Hover color uses the hover gradient */
.submit-btn:hover {
    background: var(--gradient-hover);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* =============================================================================
   6. HEADER & FOOTER (Unchanged)
   ============================================================================= */
.header-banner {
    background-color: var(--color-primary); 
    color: var(--white); 
    padding: 15px 0; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-banner h1, .header-banner h2, .header-banner span, .header-banner a {
    color: var(--white); 
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
}

/* =============================================================================
   7. MAIN LAYOUT (Unchanged)
   ============================================================================= */
.main-layout {
    flex-grow: 1;
    padding-top: 30px;
    padding-bottom: 30px;
}

/* =============================================================================
   8. QUERY SECTION & AGENT SELECTION (Unchanged)
   ============================================================================= */
.query-section {
    background: var(--white); 
    padding: 32px; 
    border-radius: var(--border-radius-lg);
    border: 1px solid #e0e0e0; 
    box-shadow: var(--box-shadow);
    margin-bottom: 32px;
}

.query-section .form-label {
    color: var(--color-text); 
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 12px;
}

/* -----------------------------------------------------------------------------
   8.1 AGENT SELECTION GRID (Input Cards - Inline Layout)
   ----------------------------------------------------------------------------- */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.agent-count-badge {
    background-color: var(--color-secondary);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
}

.agent-grid {
    display: flex;
    flex-wrap: wrap; 
    gap: 15px; 
    margin-bottom: 30px;
}

.agent-card {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 2px solid #ddd;
    border-radius: var(--border-radius-lg);
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-basis: 180px; 
    flex-grow: 1;
    box-shadow: var(--box-shadow-sm);
}

.agent-card.selected {
    border-color: var(--color-secondary); 
}

.agent-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.agent-logo {
    font-size: 1.5rem;
    line-height: 1;
    margin-right: 10px;
}

.agent-name {
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.2;
}

.agent-status {
    font-size: 0.8rem;
    color: #777;
    margin-left: auto; 
}

/* =============================================================================
   9. RESULTS & AGENT CARDS (DYNAMIC OUTPUT - Inline Layout)
   ============================================================================= */
#results-section {
    opacity: 0;
    transition: opacity 0.5s ease;
    padding-top: 15px;
}

#results-section.visible {
    opacity: 1;
}

/* Ensure dynamic results are inline */
.row {
    display: flex;
    flex-wrap: wrap; 
}

.agent-card-result { 
    background-color: var(--white);
    border: 1px solid #dcdcdc; 
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow-sm); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; 
}

.agent-card-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}

.response-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.provider-name {
    font-weight: 700;
    color: var(--color-primary);
    margin-right: 10px;
    font-size: 1.1rem;
    display: inline-block;
}

.champion-badge {
    background-color: var(--color-secondary); 
    color: var(--white);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    vertical-align: middle;
}

.response-meta {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-top: 5px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

.response-text {
    white-space: pre-wrap;
}