:root {
    --primary-color: #7b2cbf;
    --primary-color-light: #9d4edd;
    --primary-color-glow: rgba(123, 44, 191, 0.5);
    --gradient-start: #0f0c29;
    --gradient-mid: #302b63;
    --gradient-end: #24243e;
    --card-bg: #1e1b4b;
    --input-bg: #312d6a;
    --text-color: #e0e0e0;
    --text-color-dark: #a0a0a0;
    --white-color: #ffffff;
    --danger-color: #e11d48;
    --success-color: #22c55e;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --text-light-bg: #f3f4f6;
    --text-dark-bg: #1f2937;
    --aspect-video: 16 / 9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    color: var(--text-color);
    min-height: 100vh;
}


.card {
    display: grid;
    width: 100%;
    gap: 10px;
    margin: 10px 0;
}
.code-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid #453c8c;
    border-radius: 8px;
    gap: 10px;
}
.tcard{
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #453c8c;
    border-radius: 8px;
    width: 100%;
    max-width: 950px;
}



.result-media {
    aspect-ratio: var(--aspect-video);
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* === Header & Footer Branding === */
.site-header, .site-footer {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
}
.site-header h1 {
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--white-color);
    margin-bottom: 5px;
    text-shadow: 0 0 15px var(--primary-color-glow);
}
.site-header p {
    font-size: 1.15rem;
    color: var(--text-color-dark);
    font-weight: 500;
}
.site-footer p {
    font-size: 0.9rem;
    color: var(--text-color-dark);
}
.site-footer a {
    color: #00bdb2;
    text-decoration: none;
    font-weight: 600;
}

main.container {
    width: 100%;
    max-width: 950px;
    background-color: var(--card-bg);
    border: 1px solid #453c8c;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 40px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    main.container { padding: 25px; }
    .site-header h1 { font-size: 2rem; }
}

/* === Form Styles === */
/*#soraForm { display: flex; gap: 15px; margin-bottom: 30px; }*/
@media (max-width: 500px) { #soraForm { flex-direction: column; } }

#sora_url {
    flex-grow: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: 1px solid #5a51a2;
    background-color: var(--input-bg);
    color: var(--white-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
}
#sora_url::placeholder { color: var(--text-color-dark); }
#sora_url:focus {
    border-color: var(--primary-color-light);
    outline: none;
    box-shadow: 0 0 15px var(--primary-color-glow);
}

#submitBtn {
    padding: 16px 24px;
    font-weight: 700;
    background: linear-gradient(112deg, #453c8c 0%, #000000 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}
#clearBtn {
    padding: 16px 24px;
    font-weight: 700;
    background: linear-gradient(219deg, #5b5b5b 0%, #303030 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.bbtd {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 10px 0;
}
#submitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
#submitBtn:disabled { background: #555; cursor: not-allowed; transform: none; box-shadow: none; }

/* === Loader & Message === */
.loader-container { display: none; padding: 40px; text-align: center; role: "status"; }
.loader {
    margin: 20px auto;
    border: 5px solid var(--input-bg);
    border-top: 5px solid var(--primary-color-light);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
.loader-container p { font-size: 1.1rem; color: var(--text-color); font-weight: 500; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

#messageContainer {
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 18px;
    border-radius: 12px;
    margin-top: 25px;
    display: none;
    border: 1px solid var(--danger-color);
    color: #fca5a5;
    background-color: rgba(225, 29, 72, 0.1);
    role: "status";
}

/* === Results Area === */
#resultsContainer {
    margin-top: 30px;
    border-top: 1px solid #453c8c;
    padding-top: 30px;
    display: none;
    animation: fadeIn 0.8s ease-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.result-layout { display: grid; grid-template-columns: 350px 1fr; gap: 40px; }
@media (max-width: 850px) { .result-layout { grid-template-columns: 1fr; } }

#thumbnail {
    width: 100%;
    border-radius: 16px;
    border: 1px solid #5a51a2;
    display: block;
    box-shadow: 0 0 25px var(--primary-color-glow);
    height: 100%;
    object-fit: contain;
}



.result-info h3 { 
    font-size: 1.3rem; 
    font-weight: 700; 
    margin-bottom: 15px;
    color: var(--white-color);
}

.stats-bar {
    display: flex;
    gap: 20px;
    background-color: var(--input-bg);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #453c8c;
}
.stat-item { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 500; }
.stat-item svg { fill: var(--primary-color-light); }
.stat-item span { font-weight: 700; color: var(--white-color); }

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}
.copy-btn {
    background: var(--input-bg);
    color: var(--text-color);
    border: 1px solid #5a51a2;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.copy-btn:hover { background-color: #453c8c; color: var(--white-color); }
.copy-btn.copied { background-color: var(--success-color); color: var(--white-color); border-color: #22c55e; }

.prompt-box {
    background-color: var(--input-bg);
    border: 1px solid #453c8c;
    padding: 20px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    max-height: 180px;
    overflow-y: auto;
    color: var(--text-color);
    margin-top: 15px;
    margin-bottom: 25px;
}

/* Download Buttons */
.download-primary { margin-bottom: 20px; }
.download-btn.btn-gradient {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white-color);
    background: linear-gradient(to bottom, #55ed00, #225f00);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.download-btn.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { .download-grid { grid-template-columns: 1fr; } }

.download-btn.btn-secondary {
    display: block;
    text-decoration: none;
    padding: 12px 15px;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid #5a51a2;
}
.download-btn.btn-secondary:hover { background-color: #453c8c; color: var(--white-color); }

/* === Guide and SEO Post (Light Background) === */
.content-article {
    width: 100%;
    max-width: 950px;
    /*background: var(--white-color);*/
    /*color: var(--text-dark-bg);*/
    border-radius: 20px;
    /*padding: 40px;*/
    margin-top: 30px;
    line-height: 1.7;
}
.content-article h2 {
    font-size: 2rem;
    font-weight: 700;
    /*color: #111827;*/
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}
.content-article h3 {
    font-size: 1.5rem;
    font-weight: 600;
    /*color: #111827;*/
    margin-top: 30px;
    margin-bottom: 15px;
}
.content-article p, .content-article ul {
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.content-article ul {
    list-style-position: inside;
    padding-left: 10px;
}
.content-article li {
    margin-bottom: 10px;
}
.content-article strong {
    color: #00bdb2;
    font-weight: 700;
}
.content-article .guide-image {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.content-article hr {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

.img{
    height: 300px;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
a{
   color: #00bdb2;
}


/* ==================
   Header / Navigation
   ================== */

.site-header {
    width: 100%;
    background-color: #000000;
    border-bottom: 1px solid #e9e8f0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Use the same container as the main content */
.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 24px;
}

.nav-logo img {
    height: 40px; /* Adjust height as needed */
    width: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-links li {
    padding: 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #6c63ff; /* Main theme color */
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #6c63ff; /* Your theme color */
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
    background: #5a52d9;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.nav-cta svg {
    width: 16px;
    height: 16px;
}

/* --- Mobile Menu --- */
.hamburger-menu {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.playstoreapp{
        display: none;
        align-items: center;
    }

/* --- Responsive (Mobile) Styles --- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%; /* Start off-screen */
        top: 71px; /* Height of header */
        width: 100%;
        height: calc(100vh - 71px);
        background-color: #000000;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 40px;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    .playstoreapp{
        display: flex;
        align-items: center;
    }
    
    .nav-menu.active {
        left: 0; /* Slide in */
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .nav-links a {
        font-size: 20px;
    }

    .nav-cta {
        font-size: 16px;
        padding: 12px 20px;
    }

    .hamburger-menu {
        display: block;
    }

    /* Animate hamburger icon */
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/* ==================
   Footer
   ================== */

.site-footer {
    background-color: #000000;
    border-top: 1px solid #e9e8f0;
    padding: 60px 0 30px;
    margin-top: 40px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px; /* Space between columns */
    margin-bottom: 30px;
}

.footer-col {
    flex: 1; /* Allows columns to grow */
    min-width: 250px; /* Prevents columns from getting too small */
}

/* --- Column 1: About --- */
.footer-about h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
}

.footer-about p {
    margin: 0 0 15px;
}

.footer-contact {
    color: #6c63ff; /* Main theme color */
    font-weight: 500;
    text-decoration: none;
}
.footer-contact:hover {
    text-decoration: underline;
}


/* --- Columns 2 & 3: Links --- */
.footer-nav h4,
.footer-legal h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 15px;
}

.footer-nav ul,
.footer-legal ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav li,
.footer-legal li {
    margin-bottom: 10px;
}

.footer-nav a,
.footer-legal a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-legal a:hover {
    color: #6c63ff; /* Main theme color */
}


/* --- Bottom Bar --- */
.footer-divider {
    border: 0;
    border-top: 1px solid #e9e8f0;
    margin: 30px 0;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
}

.footer-bottom a {
    color: #6c63ff;
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* --- Responsive (Mobile) Styles --- */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column; /* Stack columns */
        gap: 30px;
    }

    .footer-col {
        min-width: 100%; /* Full width on mobile */
    }
}