/* ===== ХЕДЕР ===== */
.main-header {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-bottom: 4px solid var(--color-blue);
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.main-header h1 {
    font-size: 18px;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-pink), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.auth-button {
    padding: 14px 20px;
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    border: 3px solid;
    text-align: center;
}

.login-button {
    background: rgba(139, 92, 246, 0.2);
    color: var(--color-purple);
    border-color: var(--color-purple);
}

.login-button:hover {
    background: rgba(139, 92, 246, 0.4);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}

.register-button {
    background: rgba(6, 182, 212, 0.2);
    color: var(--color-cyan);
    border-color: var(--color-cyan);
}

.register-button:hover {
    background: rgba(6, 182, 212, 0.4);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}

.auth-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.back-button {
    padding: 10px 20px;
    background: rgba(139, 92, 246, 0.2);
    color: var(--color-purple);
    border: 3px solid var(--color-purple);
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    display: inline-block;
}

.back-button:hover {
    background: rgba(139, 92, 246, 0.4);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}

.back-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

/* ===== ФУТЕР ===== */
.main-footer {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    padding: 25px 40px;
    border-top: 4px solid var(--color-purple);
    margin-top: auto;
    flex-shrink: 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-links-row {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-link {
    display: inline-flex;
    align-items: center;
}

.footer-links-row a {
    font-size: 10px;
    color: var(--color-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.footer-links-row a:hover {
    color: var(--color-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.footer-divider {
    color: var(--color-purple);
    font-size: 10px;
    margin: 0 5px;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    padding: 2px;
}

.telegram-icon {
    width: 25px;
    height: 25px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transition: all 0.3s ease;
    vertical-align: middle;
    margin-top: -2px;
}

.telegram-text {
    margin-left: 6px;
    font-size: 10px;
    text-transform: uppercase;
}

.telegram-link:hover .telegram-icon {
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
    transform: scale(1.1);
}

/* ===== АДАПТИВНОСТЬ (ПЛАНШЕТЫ) ===== */
@media (max-width: 1024px) {
    .main-header {
        padding: 15px 20px;
    }

    .main-header h1 {
        font-size: 14px;
    }

    .auth-button {
        font-size: 8px;
        padding: 12px 18px;
    }

    .back-button {
        font-size: 8px;
        padding: 10px 18px;
    }
}

/* ===== АДАПТИВНОСТЬ (МОБИЛЬНЫЕ) ===== */
@media (max-width: 768px) {
    .main-header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 12px 15px;
    }

    .main-header h1 {
        font-size: 12px;
        flex: 1;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .register-button {
        display: none;
    }

    .auth-buttons {
        width: auto;
    }

    .auth-button {
        font-size: 7px;
        padding: 8px 12px;
    }

    .back-button {
        font-size: 7px;
        padding: 8px 12px;
        white-space: nowrap;
    }

    .main-footer {
        padding: 15px;
    }

    .footer-links-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-links-row a {
        font-size: 8px;
    }

    .footer-divider {
        display: none;
    }

    .telegram-link {
        order: 0;
    }

    .footer-link-terms {
        order: 1;
    }

    .footer-link-privacy {
        order: 2;
    }

    .telegram-icon {
        width: 20px;
        height: 20px;
    }
}

/* ===== АДАПТИВНОСТЬ (МАЛЕНЬКИЕ МОБИЛЬНЫЕ) ===== */
@media (max-width: 480px) {
    .main-header {
        padding: 10px 12px;
        gap: 8px;
    }

    .main-header h1 {
        font-size: 12px;
    }

    .auth-button {
        font-size: 6px;
        padding: 7px 10px;
    }

    .back-button {
        font-size: 6px;
        padding: 7px 10px;
    }

    .main-footer {
        padding: 12px 10px;
    }

    .footer-links-row {
        gap: 6px;
    }

    .footer-links-row a {
        font-size: 7px;
    }

    .telegram-icon {
        width: 18px;
        height: 18px;
    }
}
