/* Красивый минималистичный дизайн в красных тонах */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #e53e3e;
    --dark-red: #c53030;
    --light-red: #feb2b2;
    --very-light-red: #fed7d7;
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #404040;
    --success-color: #38a169;
    --error-color: #e53e3e;
    --shadow: 0 4px 20px rgba(229, 62, 62, 0.1);
    --shadow-hover: 0 8px 30px rgba(229, 62, 62, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b1b 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(229, 62, 62, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Main */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Search Section */
.search-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

#steamInput {
    flex: 1;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-color);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#steamInput:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

#steamInput::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

.examples {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.examples h3 {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.examples ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.examples li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.examples code {
    background: var(--bg-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: var(--light-red);
    font-size: 0.85rem;
}

/* Results Section */
.results-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-info {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.avatar-section {
    flex-shrink: 0;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-red);
    object-fit: cover;
}

.info-section {
    flex: 1;
}

.info-section h2 {
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.info-section p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.profile-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.profile-link:hover {
    color: var(--light-red);
}

.steamid-results {
    display: grid;
    gap: 20px;
}

.result-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.result-group:hover {
    border-color: var(--primary-red);
}

.result-group label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 180px;
}

.result-value {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.result-value span {
    font-family: 'Courier New', monospace;
    background: var(--card-bg);
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--light-red);
    font-size: 0.9rem;
    flex: 1;
    text-align: right;
    word-break: break-all;
}

.copy-btn {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: var(--dark-red);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* Error Section */
.error-section {
    background: rgba(229, 62, 62, 0.1);
    border: 1px solid var(--error-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
}

.error-message {
    color: var(--error-color);
    font-weight: 500;
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 40px;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--light-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .search-section,
    .results-section {
        padding: 25px;
    }

    .input-group {
        flex-direction: column;
    }

    .search-btn {
        padding: 12px 20px;
    }

    .user-info {
        flex-direction: column;
        text-align: center;
    }

    .result-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .result-group label {
        min-width: auto;
        text-align: left;
    }

    .result-value span {
        text-align: left;
    }

    .examples ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }

    .search-section,
    .results-section {
        padding: 20px;
    }

    .avatar {
        width: 60px;
        height: 60px;
    }

    .info-section h2 {
        font-size: 1.3rem;
    }
}

/* Дополнительные эффекты */
.result-value span {
    transition: all 0.3s ease;
}

.result-group:hover .result-value span {
    background: var(--primary-red);
    color: white;
    transform: scale(1.02);
}

/* Анимация появления */
.search-section,
.examples {
    animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Градиентные границы для карточек */
.search-section::before,
.results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-red), transparent, var(--primary-red));
    border-radius: 20px;
    padding: 1px;
    z-index: -1;
}

.search-section,
.results-section {
    position: relative;
}

/* Пульсация для загрузки */
.loading-section .loader {
    box-shadow: 0 0 20px rgba(229, 62, 62, 0.3);
}

/* Hover эффекты для всех интерактивных элементов */
.copy-btn,
.search-btn,
#steamInput {
    position: relative;
    overflow: hidden;
}

.copy-btn::before,
.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.copy-btn:hover::before,
.search-btn:hover::before {
    left: 100%;
}