/* ================================================
   YouTube to MP3 Converter - Global Styles
   Color Scheme: Dark Navy with Orange/Yellow Gradients
   ================================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0e29;
    min-height: 100vh;
    color: #fff;
}

/* ==================== Header & Navigation ==================== */
.header {
    background: rgba(15, 14, 41, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    max-width: 100%;
    width: 100%;
    height: 36px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 20px;
    background: linear-gradient(135deg, #FF6B6B, #FFD93D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 11px;
    color: #FF6B6B;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: #FFD93D;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF6B6B, #FFD93D);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #FFD93D;
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 14, 41, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        display: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }
}

/* ==================== Main Content ==================== */
.main-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== Page Headers ==================== */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    background: linear-gradient(135deg, #FF6B6B, #FFD93D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.last-updated {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 30px;
}

/* ==================== Containers & Boxes ==================== */
.container {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.content-box h2 {
    color: #FFD93D;
    margin-bottom: 20px;
    font-size: 24px;
}

.content-box h3 {
    color: #FF6B6B;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 20px;
}

.content-box p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-box ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.content-box li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 10px;
}

/* ==================== Converter Specific ==================== */
h2 {
    text-align: center;
    background: linear-gradient(135deg, #FF6B6B, #FFD93D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-size: 32px;
}

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-size: 14px;
}

/* ==================== Forms ==================== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    color: #fff;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #FFD93D;
    background: rgba(255, 255, 255, 0.08);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ==================== Bitrate Selector ==================== */
.bitrate-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.bitrate-option {
    position: relative;
}

.bitrate-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.bitrate-option label {
    display: block;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.bitrate-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #FF6B6B, #FFD93D);
    color: #0f0e29;
    border-color: #FFD93D;
}

.bitrate-option label:hover {
    border-color: #FFD93D;
    background: rgba(255, 255, 255, 0.08);
}

.bitrate-quality {
    font-size: 11px;
    display: block;
    margin-top: 3px;
    opacity: 0.8;
}

/* ==================== Buttons ==================== */
.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #FF6B6B, #FFD93D);
    color: #0f0e29;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn:active {
    transform: translateY(0);
}

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

.download-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* ==================== Progress Tracker ==================== */
.progress-container {
    display: none;
    margin-top: 20px;
}

.progress-container.active {
    display: block;
}

.progress-steps {
    margin-bottom: 20px;
}

.progress-step {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 4px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.progress-step.active {
    border-left-color: #FFD93D;
    background: rgba(255, 217, 61, 0.1);
}

.progress-step.completed {
    border-left-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.progress-step.error {
    border-left-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
}

.step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
    font-weight: bold;
}

.progress-step .step-icon {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.progress-step.active .step-icon {
    background: linear-gradient(135deg, #FF6B6B, #FFD93D);
    color: #0f0e29;
    animation: pulse 1.5s infinite;
}

.progress-step.completed .step-icon {
    background: #4CAF50;
    color: white;
}

.progress-step.error .step-icon {
    background: #FF6B6B;
    color: white;
}

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

.step-text {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2px;
}

.step-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== Download Section ==================== */
.download-section {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: rgba(76, 175, 80, 0.15);
    border-radius: 10px;
    border: 2px solid #4CAF50;
    text-align: center;
}

.download-section.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-info h3 {
    color: #4CAF50;
    margin-bottom: 10px;
}

.download-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

/* ==================== Alerts ==================== */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid #FF6B6B;
    color: #FF6B6B;
}

.alert-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.alert-warning {
    background: rgba(255, 217, 61, 0.15);
    border: 1px solid #FFD93D;
    color: #FFD93D;
}

.alert-info {
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid #2196F3;
    color: #2196F3;
}

/* ==================== Highlight Boxes ==================== */
.highlight-box {
    background: rgba(255, 217, 61, 0.1);
    border: 1px solid rgba(255, 217, 61, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.highlight-box p {
    color: rgba(255, 255, 255, 0.9);
}

.highlight-box strong {
    color: #FFD93D;
}

.highlight-box.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.highlight-box.error strong {
    color: #FF6B6B;
}

/* ==================== Example Section ==================== */
.example {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.example strong {
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== Instructions Section ==================== */
.instructions {
    margin: 40px auto;
    max-width: 800px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.instructions h3 {
    color: #FFD93D;
    margin-bottom: 20px;
    font-size: 24px;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    line-height: 1.6;
}

.instructions li strong {
    color: #FF6B6B;
}

/* ==================== Contact Methods ==================== */
.contact-methods {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item h3 {
    color: #FF6B6B;
    margin-bottom: 10px;
    font-size: 18px;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.contact-item a {
    color: #FFD93D;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ==================== Footer ==================== */
.footer {
    background: rgba(15, 14, 41, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    margin-top: 60px;
    text-align: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FFD93D;
}

/* ==================== Animations ==================== */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(15, 14, 41, 0.3);
    border-radius: 50%;
    border-top-color: #0f0e29;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }

    .content-box {
        padding: 20px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .bitrate-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .instructions {
        padding: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 16px;
    }

    .logo-text p {
        font-size: 9px;
    }
    .bitrate-selector {
        grid-template-columns: 1fr;
    }
}

/* ==================== Utility Classes ==================== */
.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}
