:root {
    --bg-color: #0d0f1a;
    --panel-bg: rgba(255, 255, 255, 0.03);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    
    --accent-glow: #00ffd5;
    --accent-hover: #00e6c0;
    
    --score-high: #10b981;
    --score-medium: #f59e0b;
    --score-low: #ef4444;

    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 1rem;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #00ffd5;
    top: -100px;
    left: 10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #7c3aed;
    bottom: -150px;
    right: 5%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Layout */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header & Hero */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out forwards;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-glow);
    margin-bottom: 1.5rem;
}

.logo i {
    font-size: 2rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 0.5rem;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    padding: 0.5rem;
    border-radius: 100px;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.search-box:focus-within {
    border-color: rgba(0, 255, 213, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 213, 0.1), 0 8px 32px rgba(0, 0, 0, 0.2);
}

#claim-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
}

#claim-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

#submit-btn {
    background: var(--accent-glow);
    color: #0d0f1a;
    border: none;
    padding: 0 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

#submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 213, 0.4);
}

#submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Glass Panel Generic */
.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Loading State */
#loading-state {
    text-align: center;
    padding: 3rem 0;
}

.scanner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 255, 213, 0.1);
    border-top-color: var(--accent-glow);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--accent-glow);
    font-weight: 500;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Results Section */
#results-section {
    animation: fadeInUp 0.6s ease-out forwards;
}

.score-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--panel-border);
}

/* Circular Chart */
.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s ease-out, stroke 0.5s ease;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.score-percent {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Verdict Text */
.score-verdict {
    flex: 1;
}

#verdict-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.claim-quote {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.1rem;
    border-left: 3px solid var(--panel-border);
    padding-left: 1rem;
}

/* Analysis Content */
.analysis-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.analysis-block h3, .sources-block h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.analysis-block h3 i, .sources-block h3 i {
    color: var(--accent-glow);
}

#analysis-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Sources List */
.source-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.source-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--panel-border);
    transition: var(--transition);
}

.source-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.source-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.source-url {
    color: var(--accent-glow);
    font-size: 0.85rem;
    text-decoration: none;
}

.source-url:hover {
    text-decoration: underline;
}

/* Buttons */
.secondary-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        border-radius: 20px;
        padding: 0.5rem;
    }

    #submit-btn {
        padding: 1rem;
        justify-content: center;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .score-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .claim-quote {
        border-left: none;
        padding-left: 0;
    }

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

/* Animations */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
