/*
Theme Name: Dark-3D-Theme
Theme URI: https://example.com/ssyoutube-clone-theme
Author: Cascade
Description: A modern theme inspired by SSYoutube.com with video downloading functionality and clean design
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: Dark-3D-Theme
*/

:root {
    --primary-color: #1e3a8a; /* Deep blue */
    --secondary-color: #f3f4f6; /* Light gray */
    --accent-color: #3b82f6; /* Medium blue */
    --accent-secondary: #ef4444; /* Red for highlights */
    --text-color: #111827; /* Dark text */
    --text-secondary: #4b5563; /* Medium gray text */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(59, 130, 246, 0.3);
    --success-color: #10b981; /* Green for success messages */
    --warning-color: #f59e0b; /* Amber for warnings */
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme='dark'] {
    --primary-color: #1e293b; /* Slate dark */
    --secondary-color: #334155; /* Darker slate */
    --accent-color: #3b82f6; /* Medium blue */
    --accent-secondary: #ef4444; /* Red for highlights */
    --text-color: #f9fafb; /* Light text */
    --text-secondary: #d1d5db; /* Light gray text */
    --glass-bg: rgba(30, 41, 59, 0.85);
    --glass-border: rgba(59, 130, 246, 0.3);
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* Theme Switch */
.theme-switch-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary-color);
    transition: .4s;
    border: 2px solid var(--accent-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 2px;
    background-color: var(--accent-color);
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: var(--primary-color);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Glass Effect */
/* General Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Cards and Containers */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Header Styles */
.announcement-bar {
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
}

.site-header {
    background-color: white;
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.main-navigation a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #f6f9fc 0%, #e9f0f7 100%);
}

.hero-content {
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Download Box Styles */
.download-box {
    background: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.url-form {
    max-width: 100%;
}

.input-group {
    display: flex;
    margin-bottom: 15px;
}

.form-control {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
}

.form-hint {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: left;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.features-preview {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 24px;
}

.feature-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 3D Button Effect */
.btn-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-3d:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: var(--accent-color);
    transform: translateZ(-5px);
    filter: brightness(0.8);
    border-radius: inherit;
}

.btn-3d:hover {
    transform: translateY(-3px) translateZ(10px);
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.step-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-10px);
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white;
    font-weight: bold;
    border-radius: 50%;
    line-height: 40px;
    margin-bottom: 15px;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-description {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    position: relative;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: '+';
    font-size: 20px;
    color: var(--accent-color);
}

.faq-question.active:after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: white;
    border-radius: 0 0 8px 8px;
    margin-top: -5px;
}

.faq-answer.show {
    padding: 20px;
    max-height: 1000px;
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    color: black;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.copyright {
    text-align: center;
    padding-top: 0px;
    margin-top: 0px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Navigation */
.main-navigation {
    position: relative;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0px;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 0 0 15px 15px;
    }

    .primary-menu.show {
        display: block;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-menu {
    animation: slideIn 0.5s ease forwards;
}

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

/* Hero Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* CTA Group */
.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    border: 2px solid var(--accent-secondary);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent-secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}
