:root {
    /* Light Theme Variables */
    --bg-color: #f0f2f5;
    --text-color: #1a1a1a;
    --card-bg: rgba(255, 255, 255, 0.85);
    --input-bg: #ffffff;
    --input-border: #e0e0e0;
    --primary-color: #4f46e5; /* Indigo */
    --accent-color: #ec4899; /* Pink */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark-mode {
    /* Dark Theme Variables */
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --card-bg: rgba(30, 41, 59, 0.7);
    --input-bg: #1e293b;
    --input-border: #334155;
    --primary-color: #6366f1;
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Abstract Background Shape */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
}

/* Navbar */
.navbar {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.theme-toggle {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 50%;
    transition: transform 0.2s;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    background: rgba(128, 128, 128, 0.1);
}

/* Container */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .highlight {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color); /* Fallback */
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Card */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    border: var(--glass-border);
    box-shadow: var(--shadow);
}

/* Input Area */
.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-group label {
    font-weight: 500;
    margin-left: 0.5rem;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 1rem;
    border-radius: 16px;
    border: 2px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Button */
.btn-primary {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Result Section */
.result-container {
    margin-top: 2rem;
    border-top: 1px solid var(--input-border);
    padding-top: 2rem;
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hidden {
    display: none !important;
}

/* Loader */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--input-border);
    border-bottom-color: var(--primary-color);
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result Content */
.result-content {
    animation: slideUp 0.5s ease;
}

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

.is-fake {
    color: var(--danger-color);
}

.is-real {
    color: var(--success-color);
}

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

#result-desc {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Animations */
.animate-in {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .card {
        padding: 1.5rem;
    }
}
