:root {
    --bg-dark: #0a0c10;
    --bg-card: rgba(23, 27, 34, 0.7);
    --accent: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --border: rgba(255, 255, 255, 0.1);
    --radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0a0c10 100%);
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
}

.logo b {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #4ade80;
}

.hero {
    text-align: center;
    padding: 80px 0 40px;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.input-card textarea {
    width: 100%;
    height: 200px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    outline: none;
    margin-bottom: 20px;
}

.drop-zone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

.drop-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.drop-zone p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.drop-zone small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 99px;
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.remove-btn {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    padding: 0;
}

.remove-btn:hover {
    background: rgba(0, 0, 0, 0.4);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

#charCount {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

button {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

button:active {
    transform: translateY(0);
}

.disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 15px;
}

.loading {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 80px 0;
}

.feature {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
}

.f-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

/* Results */
.result-group {
    margin-bottom: 30px;
}

.result-group h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
}

.badge-vysoke {
    background: #ef4444;
    color: white;
}

.badge-stredne {
    background: #f59e0b;
    color: white;
}

.badge-nizke {
    background: #10b981;
    color: white;
}

.result-list {
    list-style: none;
}

.result-list li {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
}

footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    header nav {
        display: none;
    }
}