:root {
    --primary-color: #00bcbf;
    /* Teal */
    --primary-dark: #009aa0;
    --secondary-color: #333;
    --bg-color: #f0f2f5;
    --white: #ffffff;
    --text-color: #333;
    --text-light: #666;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background-color: var(--white);
    padding: 60px 0 80px;
    text-align: center;
    border-bottom: 1px solid #e1e4e8;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.downloader-card {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
}

input[type="url"] {
    flex: 1;
    padding: 18px 20px;
    font-size: 16px;
    border: 2px solid #e1e4e8;
    border-radius: var(--border-radius);
    outline: none;
    transition: border-color 0.3s;
}

input[type="url"]:focus {
    border-color: var(--primary-color);
}

#downloadBtn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 140px;
    position: relative;
}

#downloadBtn:hover {
    background-color: var(--primary-dark);
}

#downloadBtn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: none;
    animation: rotation 1s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes rotation {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.error-message {
    color: #d32f2f;
    background-color: #fdecea;
    padding: 10px;
    border-radius: var(--border-radius);
    display: none;
    margin-bottom: 20px;
    text-align: left;
}

/* Result Section */
.result-container {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 20px;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: none;
}

.result-container.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.video-info h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.download-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    transition: opacity 0.3s;
}

.btn-hd {
    background-color: #2ecc71;
}

.btn-sd {
    background-color: #3498db;
}

.download-btn:hover {
    opacity: 0.9;
}

/* How to Section */
.how-to-section {
    padding: 80px 0;
    background-color: var(--white);
}

.how-to-section h2,
.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.step-card {
    padding: 20px;
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: #e0f7fa;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: 700;
}

.step-card h3 {
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-light);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: #fff;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header i {
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.accordion-content.open {
    padding-bottom: 20px;
    max-height: 200px;
    /* approximates content height */
}

/* Footer */
.app-footer {
    background-color: var(--white);
    padding: 40px 0;
    border-top: 1px solid #eee;
    margin-top: auto;
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }

    #downloadBtn {
        width: 100%;
        padding: 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
    }
}