:root {
    --primary-blue: #6d28d9;
    --primary-pink: #ec4899;
    --dark-text: #1e1b4b;
    --light-text: #6b7280;
    --bg-color: #f8fafc;
    --white: #ffffff;
    --input-border: #e2e8f0;
}

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

body {
    background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
    min-height: 100vh;
    color: var(--dark-text);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-icon-wrapper {
    color: var(--primary-blue);
    font-size: 2rem;
    display: flex;
    align-items: center;
    margin-right: 0.3rem;
}

.logo-text {
    color: var(--dark-text);
}

.logo-highlight {
    color: var(--primary-pink);
}

.nav-icons {
    display: flex;
    gap: 1rem;
}

.icon-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--light-text);
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: #f1f5f9;
}

.icon-btn.active {
    background: #eef2ff;
    color: var(--primary-blue);
}

.hero {
    max-width: 750px;
    margin: 5rem auto;
    text-align: center;
    padding: 0 1rem;
}

.main-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.brand-blue { color: #6d28d9; }
.brand-pink { color: #db2777; }
.brand-dark { color: #111827; }

.subtitle {
    color: #4b5563;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: var(--white);
    border: 2px solid #e2e8f0;
    padding: 0.6rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #c7d2fe;
    color: var(--primary-blue);
}

.tab-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.2);
}

.input-container {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.05);
    border: 1px solid var(--input-border);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.input-container:focus-within {
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.15);
    border-color: #c7d2fe;
}

.input-icon {
    font-size: 1.5rem;
    color: #9ca3af;
    margin: 0 1rem;
    transform: rotate(-45deg);
}

.url-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.15rem;
    color: var(--dark-text);
    background: transparent;
    padding-right: 1rem;
}

.url-input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.paste-btn {
    background: #8b5cf6;
    color: var(--white);
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.paste-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.report-issue {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s;
    margin-top: 1rem;
}

.report-issue:hover {
    color: #4b5563;
}

/* Result Styles */
.result-container {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

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

.result-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--input-border);
    width: 300px;
    flex-shrink: 0;
}

.video-preview {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 9/16;
    background: #000;
}

.video-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.result-actions {
    margin-top: 1rem;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #10b981;
    color: var(--white);
    text-decoration: none;
    padding: 1rem;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.download-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.ph-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.ceo-badge {
    margin: 3rem auto 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    background: #ffffff;
    padding: 1.5rem 2.5rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 35px -5px rgba(109, 40, 217, 0.05);
    max-width: 350px;
    transition: transform 0.3s ease;
}

/* Mobile Responsiveness & Optimization */
@media (max-width: 768px) {
    .navbar { padding: 1rem; }
    .logo { font-size: 1.2rem; }
    .logo-icon-wrapper { font-size: 1.6rem; }
    .hero { margin: 3rem auto; }
    .main-title { font-size: 2.2rem; }
    .subtitle { font-size: 1rem; }
    .input-container { padding: 0.4rem; }
    .paste-btn { padding: 0.8rem 1.5rem; font-size: 1rem; }
    .url-input { font-size: 1rem; }
    .seo-content { padding: 1.5rem; margin: 2rem 1rem; }
    .result-card { width: 100%; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 480px) {
    .main-title { font-size: 1.8rem; }
    .tabs { gap: 0.5rem; }
    .tab-btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
    .input-container { border-radius: 20px; flex-direction: column; background: transparent; border: none; box-shadow: none; gap: 0.8rem; padding: 0; }
    .url-input { background: white; padding: 1rem 1.5rem; border-radius: 30px; border: 1px solid var(--input-border); width: 100%; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
    .paste-btn { width: 100%; justify-content: center; border-radius: 30px; padding: 1rem; }
    .input-icon { display: none; }
    .logo-text { font-size: 1.1rem; }
    .ceo-badge { padding: 1.2rem 1.5rem; max-width: 90%; margin: 2rem auto; }
}
