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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
    padding: 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 3rem;
    background: linear-gradient(90deg, #e94560, #0f3460);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

header p {
    color: #8892b0;
    font-size: 1.2rem;
}

.dropzone {
    border: 3px dashed #e94560;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.dropzone:hover,
.dropzone.dragover {
    border-color: #fff;
    background: rgba(233, 69, 96, 0.1);
    transform: scale(1.01);
}

.dropzone-content svg {
    color: #e94560;
    margin-bottom: 1rem;
}

.dropzone-content p {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.dropzone-content span {
    color: #8892b0;
}

.loading {
    text-align: center;
    padding: 4rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(233, 69, 96, 0.2);
    border-top-color: #e94560;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

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

.hidden {
    display: none !important;
}

.results {
    animation: fadeIn 0.5s ease;
}

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

.sentence-box {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2), rgba(15, 52, 96, 0.2));
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.sentence-box h2 {
    color: #e94560;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sentence-box p {
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.6;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .images-grid {
        grid-template-columns: 1fr;
    }
}

.image-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

.image-card h3 {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
}

.words-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.words-info h3 {
    margin-bottom: 1rem;
    color: #e94560;
}

.words-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.word-tag {
    background: linear-gradient(135deg, #e94560, #0f3460);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.word-tag .coords {
    font-size: 0.75rem;
    opacity: 0.7;
}

.reset-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 1rem 2rem;
    font-size: 1rem;
    background: linear-gradient(135deg, #e94560, #0f3460);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.error {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 15px;
}

.error p {
    margin-bottom: 1rem;
    color: #ff6b6b;
}

.error button {
    padding: 0.75rem 2rem;
    background: #e94560;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
}
