/* ===========================================
   YouTube Downloader
   Professional UI
===========================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
    background: #f4f7fb;
    color: #222;
}

/* ==========================
        Navbar
========================== */

.navbar {
    background: #111827;
    padding: 18px 0;
}

.navbar-brand {
    font-size: 28px;
    font-weight: bold;
}

.nav-link {
    color: #fff !important;
    margin-left: 20px;
    transition: .3s;
}

    .nav-link:hover {
        color: #ff0000 !important;
    }

/* ==========================
        Hero
========================== */

.hero-section {
    background: linear-gradient(135deg,#ff0000,#ff4d4d);
    padding: 90px 0;
    color: white;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
}

.hero-subtitle {
    margin-top: 15px;
    font-size: 22px;
    opacity: .9;
}

/* ==========================
      Search Card
========================== */

.search-card {
    margin-top: 45px;
    background: white;
    padding: 25px;
    border-radius: 20px;
}

    .search-card input {
        border: none;
        box-shadow: none;
        font-size: 18px;
    }

        .search-card input:focus {
            box-shadow: none;
        }

    .search-card .btn {
        border-radius: 12px;
        font-size: 20px;
        font-weight: 600;
    }

/* ==========================
      Features
========================== */

.feature-card {
    background: white;
    padding: 35px;
    border-radius: 18px;
    text-align: center;
    transition: .3s;
    box-shadow: 0 15px 30px rgba(0,0,0,.08);
    height: 100%;
}

    .feature-card:hover {
        transform: translateY(-8px);
    }

.feature-icon {
    font-size: 55px;
    color: #ff0000;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-weight: bold;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 28px;
}

/* ==========================
      Result Card
========================== */

.result-card {
    margin-top: 60px;
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

    .result-card img {
        border-radius: 15px;
    }

    .result-card h2 {
        font-weight: 700;
    }

    .result-card p {
        margin-top: 12px;
        font-size: 17px;
    }

/* ==========================
 Download Card
========================== */

.download-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: .3s;
}

    .download-item:hover {
        background: #eef2f7;
    }

.format {
    display: inline-block;
    background: #ff0000;
    color: white;
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: bold;
}

.quality {
    font-size: 20px;
    font-weight: 600;
    margin-left: 20px;
}

.download-btn {
    background: #198754;
    color: white;
    padding: 10px 30px;
    border-radius: 10px;
    text-decoration: none;
    transition: .3s;
}

    .download-btn:hover {
        color: white;
        background: #146c43;
    }


/* ===========================
   Download Cards
=========================== */

.download-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
    transition: .25s;
}

    .download-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
    }

.download-left {
    display: flex;
    align-items: center;
}

.video-icon {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    background: #ff0000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    margin-right: 15px;
}

.video-info h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.video-info span {
    color: #666;
    font-size: 14px;
}

.download-btn {
    padding: 12px 28px;
    border-radius: 30px;
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

    .download-btn:hover {
        background: #0b5ed7;
        color: #fff;
    }


/* ===========================
Thumbnail
=========================== */

.thumb {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}


/* ===========================
Feature Section
=========================== */

.features {
    margin-top: 70px;
}

.feature-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.05);
    transition: .3s;
}

    .feature-box:hover {
        transform: translateY(-5px);
    }

    .feature-box i {
        font-size: 45px;
        color: #dc3545;
        margin-bottom: 20px;
    }

    .feature-box h4 {
        font-weight: 600;
        margin-bottom: 15px;
    }


/* ===========================
Footer
=========================== */

.footer {
    margin-top: 80px;
    padding: 40px 0;
    background: #111;
    color: #fff;
    text-align: center;
}


/* ===========================
Responsive
=========================== */

@media(max-width:768px) {

    .download-card {
        flex-direction: column;
        text-align: center;
    }

    .download-left {
        flex-direction: column;
    }

    .video-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .download-btn {
        margin-top: 20px;
        width: 100%;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }
}