/* ==============================================
   QR PAGE STYLES
   ============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Content */
.qr-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    min-height: calc(100vh - 80px); /* Учитываем высоту navbar */
}

.qr-main .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* QR Container */
.qr-container {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.1);
}

.logo {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.qr-container h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* QR Code Display */
#qrcode {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 30px auto;
    display: inline-block;
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
}

#qrcode.show {
    opacity: 1;
    transform: scale(1);
}

#qrcode canvas {
    display: block;
}

/* URL Display */
.url {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
    color: #00ff88;
    font-weight: 600;
    display: inline-block;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.url:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: scale(1.05);
}

/* Download Buttons */
.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-download {
    background: linear-gradient(135deg, #00ff88, #00ccdd);
    color: #0a0a0a;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
}

.btn-download:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-download.download-success {
    background: #27ae60;
    color: white;
}

/* Info Text */
.info-text {
    color: #999;
    font-size: 0.9rem;
    margin-top: 20px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qr-main {
        padding: 100px 15px 30px;
        min-height: calc(100vh - 60px);
    }

    .qr-container {
        padding: 30px 20px;
    }

    .qr-container h1 {
        font-size: 1.5rem;
    }

    .download-buttons {
        flex-direction: column;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }

    .logo {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .qr-container {
        padding: 25px 15px;
    }

    .qr-container h1 {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    #qrcode {
        padding: 15px;
    }
}