:root {
    --primary-color: #d4af37; /* Gold */
    --secondary-color: #2c2c2c;
    --bg-dark: #121212;
    --text-light: #e0e0e0;
    --card-bg: #1e1e1e;
    --accent-glow: rgba(212, 175, 55, 0.3);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    padding: 3rem 1rem;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1485846234645-a62644f84728?auto=format&fit=crop&q=80&w=1000') center/cover;
    border-bottom: 2px solid var(--primary-color);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px var(--accent-glow);
}

main {
    flex: 1;
    max-width: 800px;
    margin: -2rem auto 2rem;
    padding: 0 1.5rem;
    width: 100%;
}

.card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
    border: 1px solid #333;
}

h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hidden {
    display: none !important;
}

/* Drop Zone */
.drop-zone {
    height: 200px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.drop-zone:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.drop-zone__input {
    display: none;
}

/* Image Preview */
#image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 3px solid var(--primary-color);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background-color: #b8962d;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-top: 1.5rem;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* Results Section */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.match-card h3 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #888;
}

.img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid #333;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlighted .img-wrapper {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

#celeb-name {
    margin-top: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

#match-percentage {
    font-weight: 300;
    color: #888;
}

/* Loader/Scanner Animation */
.loader-container {
    padding: 3rem 0;
}

.scanner {
    width: 200px;
    height: 200px;
    border: 2px solid var(--primary-color);
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.scanner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

footer {
    padding: 2rem;
    text-align: center;
    color: #555;
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .logo {
        font-size: 2.5rem;
    }
}