/* === СТИЛИ ДЛЯ СТРАНИЦ ПРОФИЛЕЙ ГОНЩИКОВ === */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-green: #0f0;
    --neon-red: #f00;
    --neon-blue: #0ff;
    --neon-pink: #f0f;
    --neon-yellow: #ff0;
    --dark-bg: #000;
    --transparent-bg: rgba(0, 0, 0, 0.9);
}

body {
    background-color: #000;
    color: var(--neon-green);
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    padding: 0;
    background-image: url('../../img/drivers/alex/Phone_Alex_Prof1.gif?v=3');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.content-wrapper {
    background-color: var(--transparent-bg);
    border: 2px solid var(--neon-red);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 15px var(--neon-green);
}

.back-button {
    margin-bottom: 20px;
}

.back-button a {
    color: var(--neon-blue);
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid var(--neon-green);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s;
}

.back-button a:hover {
    background: var(--neon-red);
    color: #000;
    border-color: var(--neon-red);
}

.profile-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px dashed var(--neon-green);
    padding-bottom: 20px;
}

.avatar {
    width: 150px;
    height: 150px;
    border: 3px solid var(--neon-pink);
    border-radius: 10px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.8rem;
    text-align: center;
    box-shadow: 0 0 15px var(--neon-blue);
}

.driver-info {
    flex: 1;
}

.driver-name {
    font-family: 'Press Start 2P', cursive;
    color: var(--neon-yellow);
    font-size: clamp(1.2rem, 4vw, 2rem);
    margin-bottom: 10px;
}

.driver-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 15px;
}

.status-active {
    background: rgba(0, 255, 0, 0.2);
    color: #55ff55;
    border: 1px solid #00ff00;
}

.status-inactive {
    background: rgba(255, 0, 0, 0.2);
    color: #ff5555;
    border: 1px solid #ff0000;
}

.driver-bio {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.stat-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    color: var(--neon-yellow);
    font-weight: bold;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--neon-pink);
    text-transform: uppercase;
}

.garage-title {
    font-family: 'Press Start 2P', cursive;
    color: var(--neon-blue);
    font-size: 1.2rem;
    margin: 30px 0 20px;
    border-bottom: 2px dotted var(--neon-pink);
    padding-bottom: 5px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.car-card {
    border: 2px solid var(--neon-pink);
    border-radius: 10px;
    padding: 15px;
    background: rgba(50, 0, 30, 0.5);
}

.car-name {
    color: var(--neon-yellow);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--neon-green);
    padding-bottom: 5px;
}

.car-specs {
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.5;
}

.car-missing {
    border: 2px dashed #444;
    background: rgba(30, 30, 30, 0.5);
    color: #666;
    text-align: center;
    padding: 30px 15px;
    font-style: italic;
}

.achievements-title {
    font-family: 'Press Start 2P', cursive;
    color: var(--neon-blue);
    font-size: 1.2rem;
    margin: 30px 0 20px;
    border-bottom: 2px dotted var(--neon-pink);
    padding-bottom: 5px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.achievement-card {
    display: flex;
    gap: 15px;
    background: rgba(0, 30, 30, 0.5);
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    padding: 15px;
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: #333;
    border: 2px solid var(--neon-yellow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #aaa;
    text-align: center;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    color: var(--neon-yellow);
    font-weight: bold;
    margin-bottom: 5px;
}

.achievement-desc {
    color: #aaa;
    font-size: 0.8rem;
    line-height: 1.4;
}

.all-achievements-btn {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 20px;
}

.all-achievements-btn a {
    color: var(--neon-blue);
    text-decoration: none;
    border: 1px solid var(--neon-green);
    padding: 5px 15px;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.all-achievements-btn a:hover {
    background: var(--neon-blue);
    color: #000;
}

.tracks-section {
    margin: 30px 0;
}

.track-record {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.track-name {
    color: var(--neon-blue);
}

.track-time {
    color: var(--neon-yellow);
    font-weight: bold;
}

.road {
    height: 50px;
    background: #111;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
    border: 2px solid var(--neon-green);
    border-radius: 8px;
}

.road::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--neon-green), var(--neon-green) 15px, transparent 15px, transparent 30px);
    transform: translateY(-50%);
}

.car {
    position: absolute;
    width: 80px;
    height: 30px;
    background: #444;
    top: 10px;
    border-radius: 6px;
    animation: drive 5s linear infinite;
    border: 1px solid var(--neon-red);
}

.car::before {
    content: "LADA SPORT";
    position: absolute;
    left: 5px;
    top: 5px;
    color: var(--neon-yellow);
    font-size: 8px;
    font-weight: bold;
}

.car::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 5px;
    width: 6px;
    height: 15px;
    background: var(--neon-red);
    border-radius: 2px;
}

@keyframes drive {
    0% { left: -100px; }
    100% { left: 100%; }
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    border-top: 2px dashed var(--neon-green);
}

footer a {
    color: var(--neon-blue);
    text-decoration: none;
}

@media (max-width: 768px) {
    .cars-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
