/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== HEADER STYLES ===== */
header {
    background-color: #ff0000;
    color: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo i {
    font-size: 2.5rem;
}

.logo h1 {
    font-size: 2rem;
    font-weight: bold;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== SEARCH CONTAINER STYLES ===== */
.search-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.input-group {
    flex: 1;
    position: relative;
}

input[type="text"] {
    width: 100%;
    padding: 1rem;
    padding-right: 3rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #ff0000;
}

.clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.clear-btn:hover {
    color: #ff0000;
}

.search-btn {
    padding: 0 2rem;
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #cc0000;
}

/* ===== RESULT CONTAINER STYLES ===== */
.result-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Loader styles */
.loader {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Video details styles */
.video-details {
    width: 100%;
}

.video-info {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.thumbnail-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.thumbnail-container img {
    width: 100%;
    height: auto;
    display: block;
}

.info-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.meta-info {
    display: flex;
    gap: 1rem;
    color: #666;
    margin-top: 1rem;
}

/* Download section styles */
.download-section {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 10px;
}

.download-section h3 {
    margin-bottom: 1rem;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.download-option {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.youtube-option {
    background-color: #f9f9f9;
    border: 1px dashed #ddd;
}

.youtube-option .format {
    color: #282828;
}

.youtube-option .quality {
    background-color: #282828;
}

.option-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.format {
    font-weight: bold;
    color: #ff0000;
}

.size {
    color: #666;
    font-size: 0.9rem;
}

.quality {
    background: #ff0000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Error state styles */
.error-state {
    text-align: center;
    color: #ff0000;
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Empty state styles */
.empty-state {
    text-align: center;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    margin-top: 4rem;
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.step i {
    font-size: 2.5rem;
    color: #ff0000;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 1rem;
}

/* ===== FOOTER STYLES ===== */
footer {
    text-align: center;
    padding: 2rem;
    background: white;
    margin-top: 4rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

footer p {
    color: #666;
    margin-bottom: 0.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .video-info {
        grid-template-columns: 1fr;
    }

    .search-container {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .logo i {
        font-size: 1.8rem;
    }
    
    .result-container {
        padding: 1.5rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* No downloads message */
.no-downloads {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
    border: 1px dashed #ddd;
    color: #666;
    border-radius: 5px;
}

/* Format headers */
.format-header {
    grid-column: 1 / -1;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    color: #333;
}

/* Download note */
.download-note {
    grid-column: 1 / -1;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* External download option */
.external-option {
    background-color: #f0f8ff;
    border: 1px solid #d0e3f3;
}

.external-option .format {
    color: #0070c0;
}

.external-option .quality {
    background-color: #0070c0;
}

/* Ad containers */
.ad-container {
    margin-bottom: 1.5rem;
    text-align: center;
}

.result-ad {
    grid-column: 1 / -1;
    width: 100%;
}

/* Navigation styles */
.main-nav {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.main-nav .container {
    display: flex;
    justify-content: center;
    padding: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: #f5f5f5;
}

.main-nav a.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.method-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0.7rem 1.5rem;
    color: #666;
}

/* Download Methods Section */
.about-methods {
    margin-top: 4rem;
    text-align: center;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.method-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.method-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.method-card h3 {
    margin-bottom: 1rem;
}

.method-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.method-status {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.method-status.enabled {
    background-color: #d4edda;
    color: #155724;
}

.method-status.disabled {
    background-color: #f8d7da;
    color: #721c24;
}

.methods-note {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem auto;
    max-width: 800px;
}

.methods-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.methods-note a:hover {
    text-decoration: underline;
} 