/* static/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0f2a 0%, #1a1f3a 50%, #0d1225 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: #f0f3ff;
}

.abstract-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}
.blob {
    position: absolute;
    background: radial-gradient(circle, rgba(100, 80, 255, 0.25), rgba(200, 80, 255, 0.05));
    border-radius: 50%;
    filter: blur(60px);
    animation: floatBlob 18s infinite alternate;
}
.blob-1 { width: 400px; height: 400px; top: -100px; left: -100px; animation-duration: 20s; }
.blob-2 { width: 500px; height: 500px; bottom: -150px; right: -100px; background: radial-gradient(circle, rgba(0, 200, 255, 0.2), rgba(0, 100, 200, 0.05)); animation-duration: 25s; }
.blob-3 { width: 300px; height: 300px; top: 40%; left: 60%; background: radial-gradient(circle, rgba(255, 100, 150, 0.15), rgba(255, 50, 100, 0.03)); animation-duration: 22s; }
@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 36px 80px;
}

.header-abstract {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 56px;
    background: rgba(15, 20, 40, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 80px;
    padding: 12px 32px;
    border: 1px solid rgba(255,255,255,0.1);
}
.logo-abstract {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(125deg, #ffffff, #a0b0ff, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}
.nav-links {
    display: flex;
    gap: 28px;
    font-weight: 500;
    color: #ccd6ff;
}
.nav-links a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s;
}
.nav-links a:hover { color: #c084fc; }
.status-group-abs {
    display: flex;
    gap: 16px;
    align-items: center;
}
.badge-abs {
    background: rgba(0,0,0,0.4);
    border-radius: 60px;
    padding: 6px 18px;
    font-size: 0.85rem;
    display: flex;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.15);
}
.lang-abs {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 60px;
    padding: 6px 16px;
    color: white;
    cursor: pointer;
}
.api-abs {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #c084fc;
    text-decoration: none;
}

.hero-section {
    text-align: center;
    margin-bottom: 48px;
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #a0b0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}
.hero-sub {
    color: #9aa5d9;
    font-size: 1.1rem;
}

.main-grid-abs {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
}

.card-abs {
    background: rgba(18, 24, 44, 0.6);
    backdrop-filter: blur(16px);
    border-radius: 48px;
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: transform 0.25s, box-shadow 0.25s;
}
.card-abs:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.5);
    border-color: rgba(192, 132, 252, 0.4);
}

.sport-tabs-abs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.sport-tab-abs {
    position: relative;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 60px;
    padding: 8px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    overflow: hidden;
    z-index: 1;
}
.sport-tab-abs.active {
    background: linear-gradient(105deg, #6450ff, #c084fc);
    border-color: transparent;
    box-shadow: 0 0 12px rgba(100,80,255,0.4);
}
.sport-tab-abs.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(from 0deg, #6450ff, #c084fc, #ff79c6, #6450ff);
    border-radius: 60px;
    z-index: -1;
    animation: rotateBorder 2s linear infinite;
}
@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fields-abs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 28px 0;
}
.field-abs {
    background: rgba(0,0,0,0.35);
    border-radius: 32px;
    padding: 8px 20px;
    border-bottom: 2px solid rgba(192, 132, 252, 0.5);
    transition: all 0.2s;
}
.field-abs.error-field {
    border-bottom: 2px solid #ff7b72;
    background: rgba(255, 50, 50, 0.1);
}
.field-abs label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #b0bbf0;
}
.field-abs input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 8px 0;
    outline: none;
}
.required-star {
    color: #ff7b72;
}
.error-message {
    font-size: 0.7rem;
    color: #ff7b72;
    margin-top: 4px;
    display: none;
}
.field-abs.error-field .error-message {
    display: block;
}

.progress-section {
    margin: 28px 0 24px;
}
.bar-abs {
    background: #2a2f4a;
    border-radius: 20px;
    height: 12px;
    overflow: hidden;
}
.fill-abs {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #6450ff, #c084fc);
    border-radius: 20px;
    transition: width 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.progress-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #b0bbf0;
}

.analyze-abs {
    width: 100%;
    background: linear-gradient(105deg, #6450ff, #c084fc);
    border: none;
    padding: 16px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}
.analyze-abs:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.response-abs {
    background: rgba(10, 12, 25, 0.7);
    border-radius: 32px;
    padding: 28px;
    font-family: 'Outfit', monospace;
    line-height: 1.55;
    min-height: 480px;
    max-height: 500px;
    white-space: pre-wrap;
    overflow-y: auto;
    border: 1px solid rgba(192, 132, 252, 0.3);
}
.response-abs::-webkit-scrollbar {
    width: 8px;
}
.response-abs::-webkit-scrollbar-track {
    background: #1a1f3a;
    border-radius: 10px;
}
.response-abs::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6450ff, #c084fc);
    border-radius: 10px;
}

/* Адаптивность */
@media (max-width: 980px) {
    .main-grid-abs { grid-template-columns: 1fr; }
    .container { padding: 20px; }
    .nav-links { display: none; }
}

/* Для форм входа/регистрации */
form p {
    margin-bottom: 15px;
    color: #fff;
}
form input:not([type=submit]) {
    background: rgba(0,0,0,0.4);
    border: 1px solid #6450ff;
    border-radius: 30px;
    padding: 10px 20px;
    color: white;
    width: 100%;
}
form button {
    background: linear-gradient(105deg, #6450ff, #c084fc);
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    color: white;
    cursor: pointer;
}
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}
.alert-success { border-left: 5px solid #27ae60; }
.alert-error { border-left: 5px solid #e74c3c; }

table {
    border-collapse: collapse;
    width: 100%;
}
th, td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #444;
}