/**
 * Helios Training Pro - Premium UI with Glassmorphism
 * Inspired by Suno music app aesthetic
 */

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Glassmorphism Effect === */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* === Gold Button Variants === */
.btn-gold-solid {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #000000;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    margin: 10px;
    white-space: nowrap;
}

.btn-gold-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

.btn-gold-border {
    background: transparent;
    color: #FFD700;
    border: 2px solid #D4AF37;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 10px;
    white-space: nowrap;
}

/* Mobile responsive button sizing */
@media (max-width: 768px) {
    .btn-gold-solid {
        padding: 14px 32px;
        font-size: 16px;
        margin: 8px;
    }
    
    .btn-gold-border {
        padding: 10px 20px;
        font-size: 13px;
        margin: 8px;
    }
}

.btn-gold-border:hover {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #000000;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

.htp-app {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    color: #FFFFFF;
    min-height: 100vh;
    overflow-x: hidden;
}

/* === Hero Section === */
.htp-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.htp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(10,10,10,0.75) 100%);
    z-index: 1;
}

.htp-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.htp-hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #F4E5A1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.htp-hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: #E5E5E5;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* === Language Toggle === */
.htp-lang-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.htp-lang-btn {
    padding: 12px 30px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.htp-lang-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.htp-lang-btn.active {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #000000;
    border-color: #FFD700;
}

/* === CTA Button === */
.htp-cta-btn {
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #000000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.htp-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

/* === Share Button === */
.htp-share-btn {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #000000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    margin-left: 15px;
}

.htp-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

/* === Stats Grid === */
.htp-stats-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 900px;
    width: 100%;
    margin-top: 60px;
}

.htp-stat-card {
    padding: 30px;
    text-align: center;
    border-radius: 24px;
}

.htp-stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.htp-stat-label {
    font-size: 14px;
    color: #E5E5E5;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* === Glassmorphism Effect === */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* === Modal === */
.htp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(10px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.htp-modal-content {
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    margin: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile-first modal adjustments */
@media (max-width: 768px) {
    .htp-modal {
        padding: 10px;
        align-items: flex-start;
    }
    
    .htp-modal-content {
        max-height: 95vh;
        padding: 30px 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

.htp-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #E5E5E5;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.htp-modal-close:hover {
    color: #FFD700;
}

.htp-modal-content h2 {
    font-size: 32px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

/* === Form Styles === */
.htp-form-group {
    margin-bottom: 20px;
}

.htp-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #E5E5E5;
    font-weight: 600;
    font-size: 14px;
}

.htp-form-group input[type="text"],
.htp-form-group input[type="tel"] {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 16px;
    transition: all 0.3s;
}

.htp-form-group input:focus {
    outline: none;
    border-color: #D4AF37;
    background: rgba(255, 255, 255, 0.08);
}

.htp-pledge label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.htp-pledge input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.htp-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #000000;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.htp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* === Modules Section === */
.htp-modules-section {
    padding: 80px 20px;
    background: #000000;
}

.htp-container {
    max-width: 1400px;
    margin: 0 auto;
}

.htp-section-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 60px;
}

.htp-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

/* === Module Card (Full Width, No Margins) === */
.htp-module-card {
    padding: 32px;
    border-radius: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.htp-module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.2);
}

.htp-module-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.htp-module-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.htp-module-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 12px;
}

.htp-module-desc {
    font-size: 16px;
    color: #E5E5E5;
    margin-bottom: 24px;
    line-height: 1.6;
}

.htp-module-locked {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    color: #999;
    font-size: 14px;
}

.lock-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.htp-module-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #000000;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.htp-module-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* === Progress Bar === */
.htp-module-progress {
    margin-top: 20px;
}

.htp-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.htp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #D4AF37, #FFD700);
    transition: width 0.5s ease;
    border-radius: 4px;
}

.htp-progress-text {
    font-size: 12px;
    color: #D4AF37;
    font-weight: 600;
}

/* === Loading === */
.htp-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.htp-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Responsive === */
@media (max-width: 768px) {
    .htp-modules-grid {
        grid-template-columns: 1fr;
    }
    
    .htp-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .htp-hero {
        min-height: 80vh;
    }
}

/* === Info Cards Grid === */
.htp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.htp-info-card {
    padding: 40px 30px;
    text-align: center;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.htp-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.htp-info-icon {
    font-size: 48px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.htp-info-card h3 {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 12px;
    font-weight: 700;
}

.htp-info-card p {
    font-size: 15px;
    color: #E5E5E5;
    line-height: 1.6;
}

/* === Module Preview List === */
.htp-modules-list {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.htp-module-preview-item {
    padding: 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.htp-module-preview-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.htp-module-number {
    font-size: 32px;
    font-weight: 800;
    color: #D4AF37;
    min-width: 50px;
}

.htp-module-preview-content {
    flex: 1;
}

.htp-module-preview-content h4 {
    font-size: 20px;
    color: #FFD700;
    margin-bottom: 8px;
}

.htp-module-preview-content p {
    font-size: 14px;
    color: #E5E5E5;
}

.htp-module-icon-preview {
    font-size: 36px;
}

/* === Certificate Preview === */
.htp-certificate-preview {
    padding: 80px 20px;
    background: #000000;
}

.htp-cert-preview-card {
    max-width: 700px;
    margin: 40px auto 0;
    padding: 50px;
    border-radius: 24px;
}

.htp-cert-header {
    text-align: center;
    margin-bottom: 40px;
}

.htp-cert-header h3 {
    font-size: 32px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.htp-cert-header p {
    font-size: 18px;
    color: #E5E5E5;
}

.htp-cert-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.htp-cert-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #E5E5E5;
}

.htp-cert-icon {
    color: #FFD700;
    font-size: 20px;
    font-weight: bold;
}

/* === Final CTA Section === */
.htp-final-cta {
    padding: 100px 20px;
    background: linear-gradient(135deg, rgba(212,175,55,0.1) 0%, rgba(0,0,0,1) 100%);
    text-align: center;
}

.htp-cta-text {
    font-size: 20px;
    color: #E5E5E5;
    margin: 20px 0 40px;
}

.htp-cta-btn-large {
    padding: 20px 60px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #000000;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.htp-cta-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}
