:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --accent-color: #fd79a8;
    --text-color: #2d3436;
    --text-light: #636e72;
    --youtube-red: #ff0000;
    --tiktok-teal: #00f2ea;
    --tiktok-pink: #ff0050;
    --soundcloud-orange: #ff8800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    margin-right: 10px;
    font-size: 28px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 8px;
    font-size: 18px;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.hero {
    text-align: center;
    padding: 60px 0;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.platform-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 50px;
}

.platform-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.platform-card i {
    font-size: 36px;
    margin-bottom: 15px;
}

.platform-card:nth-child(1) i {
    color: var(--youtube-red);
}

.platform-card:nth-child(2) i {
    background: linear-gradient(to right, var(--tiktok-teal), var(--tiktok-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.platform-card:nth-child(3) i {
    color: var(--soundcloud-orange);
}

.platform-card:nth-child(4) i {
    color: var(--primary-color);
}

.platform-card h3 {
    font-size: 18px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature p {
    color: var(--text-light);
}

/* Download Page Styles */
.download-page {
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
}

.download-page h1 {
    font-size: 36px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-page h1 i {
    margin-right: 15px;
}

.youtube-page h1 i {
    color: var(--youtube-red);
}

.tiktok-page h1 i {
    background: linear-gradient(to right, var(--tiktok-teal), var(--tiktok-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.soundcloud-page h1 i {
    color: var(--soundcloud-orange);
}

.converter-page h1 i {
    color: var(--primary-color);
}

.download-page .subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: center;
}

.download-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 40px;
}

.url-input {
    display: flex;
    margin-bottom: 20px;
}

.url-input input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
    font-size: 16px;
}

.url-input .analyze-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 25px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s;
}

.url-input .analyze-btn:hover {
    background-color: #5649c0;
}

.results {
    display: none;
}

.results.show {
    display: block;
}

.video-preview {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

@media (max-width: 600px) {
    .video-preview {
        flex-direction: column;
    }
    
    .thumbnail {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 15px;
    }
}

.thumbnail {
    position: relative;
    width: 240px;
    margin-right: 20px;
    flex-shrink: 0;
}

.thumbnail img {
    width: 100%;
    border-radius: 5px;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.video-info {
    flex: 1;
}

.video-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.video-channel {
    color: var(--text-light);
    font-size: 14px;
}

.download-options h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.formats {
    margin-bottom: 30px;
}

.format-option {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.format-option input {
    margin-right: 10px;
}

.download-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 16px;
    width: 100%;
}

.download-btn:hover {
    background-color: #5649c0;
}

.how-to {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.how-to h3 {
    margin-bottom: 20px;
}

.how-to ol {
    padding-left: 20px;
}

.how-to li {
    margin-bottom: 10px;
}

/* Converter specific styles */
.format-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.format-card {
    background: white;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.format-card:hover {
    border-color: var(--primary-color);
}

.format-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(108, 92, 231, 0.1);
}

.format-card i {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.format-card h4 {
    font-size: 16px;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-light);
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: var(--text-light);
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Loading spinner */
.spinner {
    display: none;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .platform-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .platform-selector {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}