
/* =========================================
   CLIPFETCH - MODERN UI
   ========================================= */

:root {
    --primary: #5145ff;
    --primary-dark: #3932d9;
    --blue: #2697f5;
    --text: #101d3b;
    --muted: #647493;
    --border: #e3eafb;
    --surface: #ffffff;
    --page: #f8faff;
    --hero-start: #e2f1ff;
    --hero-end: #e9e5ff;
    --shadow: 0 8px 28px rgba(40, 72, 140, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: var(--page);
    line-height: 1.6;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
}

/* NAVBAR */

.navbar {
    height: 74px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #edf0fa;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1380px;
    height: 100%;
    padding: 0 32px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
}

.brand > span:last-child > span {
    color: var(--primary);
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 29px;
    background: linear-gradient(135deg, #6554ff, #3d45ed);
    box-shadow: 0 6px 15px rgba(81, 69, 255, 0.22);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
    height: 100%;
}

.nav-links a {
    height: 100%;
    display: flex;
    align-items: center;
    color: #596b8d;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-toggle {
    border: 0;
    background: #f1f4fc;
    color: var(--text);
    width: 43px;
    height: 43px;
    border-radius: 50%;
    font-size: 23px;
    cursor: pointer;
}

.nav-cta {
    background: linear-gradient(120deg, #36a7f5, #7560f6);
    color: white;
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 5px 12px rgba(74, 111, 240, 0.2);
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 15%, rgba(191, 165, 255, 0.48), transparent 33%),
        linear-gradient(110deg, var(--hero-start), #e9f2ff 48%, var(--hero-end));
}

.hero::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    left: -210px;
    bottom: -240px;
    border-radius: 50%;
    border: 45px solid rgba(255, 255, 255, 0.38);
}

.hero-container {
    max-width: 1380px;
    min-height: 300px;
    margin: auto;
    padding: 38px 35px 35px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 40px;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: #4057ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(43px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -2.5px;
    font-weight: 800;
    margin-bottom: 7px;
}

.hero-description {
    max-width: 510px;
    font-size: 19px;
    line-height: 1.55;
    font-weight: 500;
}

.features {
    display: flex;
    gap: 20px;
    margin-top: 31px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-right: 17px;
    border-right: 1px solid rgba(90, 116, 170, 0.35);
}

.feature:last-child {
    border-right: 0;
    padding-right: 0;
}

.feature-icon {
    font-size: 25px;
    line-height: 1.1;
    color: #4c43e9;
    font-weight: 800;
}

.feature strong,
.feature small {
    display: block;
}

.feature strong {
    font-size: 12px;
    white-space: nowrap;
}

.feature small {
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
    white-space: nowrap;
}

.hero-form-area {
    position: relative;
    z-index: 3;
}

.url-form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(65, 93, 155, 0.1);
}

.url-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 45px;
    padding: 0 14px;
    border: 1px solid #e1e8f8;
    border-radius: 11px;
    background: white;
    min-width: 0;
}

.link-icon {
    color: #3196ff;
    font-size: 22px;
}

.url-input-wrap input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    font-size: 13px;
    background: transparent;
}

.url-input-wrap input::placeholder {
    color: #8493b1;
}

.primary-button {
    height: 45px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    color: white;
    background: linear-gradient(110deg, #328ff5, #5545f5);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(68, 82, 235, 0.2);
    transition: 0.2s;
}

.primary-button:hover,
.download-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.primary-button:disabled,
.download-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.supported-note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 17px 8px 0;
    font-size: 12px;
    color: #253b63;
}

.supported-note > span:first-child {
    color: #347ff4;
    font-size: 19px;
}

.supported-note strong {
    margin-right: 5px;
}

.status-message {
    min-height: 20px;
    margin-top: 10px;
    color: #425b8b;
    font-size: 13px;
    overflow-wrap: anywhere;
    font-weight: 500;
}

/* SUCCESS MESSAGE */
.status-message.success {
    color: #16a34a;
    font-weight: 700;
}

/* ERROR MESSAGE */
.status-message.error {
    color: #dc2626;
    font-weight: 700;
}
.hero-decoration {
    position: absolute;
    right: 25px;
    top: 18px;
    width: 160px;
    height: 240px;
    pointer-events: none;
    opacity: 0.9;
}

.floating-social {
    position: absolute;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    color: white;
    font-size: 35px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(44, 63, 150, 0.2);
}

.floating-social.tiktok {
    background: #111;
    top: 25px;
    left: 0;
    transform: rotate(9deg);
}

.floating-social.instagram {
    background: linear-gradient(35deg, #ffbd46, #ed348e, #7049ef);
    top: 55px;
    right: 12px;
    transform: rotate(10deg);
}

.floating-social.facebook {
    background: #1877f2;
    top: 115px;
    right: 0;
    transform: rotate(9deg);
}

.floating-download {
    position: absolute;
    width: 85px;
    height: 85px;
    left: 35px;
    bottom: 12px;
    display: grid;
    place-items: center;
    border-radius: 23px;
    color: white;
    font-size: 48px;
    background: linear-gradient(140deg, #7e8bff, #4842f0);
    box-shadow: 0 15px 25px rgba(70, 76, 220, 0.25);
    transform: rotate(-8deg);
}

/* SHARED SECTION */

.section-container {
    max-width: 1380px;
    margin: 26px auto;
    padding-left: 30px;
    padding-right: 30px;
}

/* PLATFORM CARDS */

.platform-section {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr 1fr;
    gap: 18px;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
    background: #f4f7ff;
    border: 1px solid #e7edfb;
    border-radius: 15px;
}

.platform-intro h2 {
    font-size: 20px;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.platform-intro p {
    color: var(--muted);
    font-size: 12px;
}

.platform-card {
    min-height: 110px;
    padding: 17px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(30, 60, 120, 0.025);
    transition: 0.2s;
}

.platform-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.platform-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 13px;
    font-size: 30px;
    font-weight: 800;
}

.tiktok {
    background: #080808;
}

.instagram {
    background: linear-gradient(35deg, #ffc04b, #ed328c, #7049ed);
}

.facebook {
    background: #1877f2;
}

.platform-card h3 {
    font-size: 15px;
    margin-bottom: 2px;
}

.platform-card p {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 8px;
}

.supported-badge,
.media-found-badge {
    display: inline-block;
    background: #e4f9ee;
    color: #07834a;
    border-radius: 30px;
    padding: 3px 11px;
    font-size: 10px;
    font-weight: 700;
}

/* MEDIA RESULT */

.result-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.result-section[hidden] {
    display: none;
}

.media-card,
.download-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 18px;
    box-shadow: 0 4px 15px rgba(30, 60, 120, 0.035);
}

.media-card {
    display: grid;
    grid-template-columns: minmax(150px, 42%) 1fr;
    gap: 20px;
}

.thumbnail-wrap {
    height: 100%;
    min-height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 9px;
    background: linear-gradient(135deg, #d9e7fa, #9bb7d5);
}

.thumbnail-wrap img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    display: block;
    object-fit: cover;
}

.preview-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 23px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid white;
    border-radius: 50%;
}

.media-information {
    min-width: 0;
}

.media-information h2 {
    font-size: 19px;
    margin: 12px 0 5px;
    overflow-wrap: anywhere;
}

.media-information > p {
    color: var(--muted);
    font-size: 12px;
}

.media-details {
    border-top: 1px solid #edf0f7;
    margin-top: 15px;
    padding-top: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    font-size: 12px;
}

.detail-row span {
    color: var(--muted);
}

.detail-row strong {
    text-align: right;
    font-size: 12px;
}

/* FORMAT OPTIONS */

.download-card h3 {
    font-size: 15px;
    margin-bottom: 13px;
}

.format-options {
    display: grid;
    gap: 7px;
}

.format-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 59px;
    padding: 10px 13px;
    border: 1px solid #e8edf8;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.format-option:hover {
    border-color: #aab5ff;
    background: #f8f9ff;
}

.format-option:has(input:checked) {
    border-color: #cbd2ff;
    background: #f4f6ff;
}

.format-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-circle {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    border: 2px solid #aab8d2;
    border-radius: 50%;
    position: relative;
}

.format-option input:checked + .radio-circle {
    border-color: #3f49d9;
}

.format-option input:checked + .radio-circle::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #3f49d9;
}

.format-info {
    flex: 1;
    display: grid;
    gap: 2px;
}

.format-info strong {
    font-size: 12px;
    font-weight: 600;
}

.format-info small {
    font-size: 11px;
    color: var(--muted);
    font-weight: 400;
}

.quality-tag {
    background: #e9edff;
    color: #4848d8;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}

.download-button {
    width: 100%;
    min-height: 43px;
    margin-top: 13px;
    border: 0;
    border-radius: 10px;
    color: white;
    background: linear-gradient(110deg, #3194f5, #6544f5);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(68, 82, 235, 0.18);
    transition: 0.2s;
}

.download-button span {
    font-size: 19px;
    margin-right: 7px;
}

.download-note {
    color: #8292b2;
    font-size: 11px;
    margin-top: 10px;
}

/* ABOUT */

.about-section {
    text-align: center;
    max-width: 800px;
    padding-top: 35px;
    padding-bottom: 45px;
}

.about-section h2 {
    font-size: 29px;
    margin-bottom: 10px;
}

.about-section > p:last-child {
    color: var(--muted);
    font-size: 14px;
}

/* FOOTER */

.footer {
    background: #17243c;
    color: white;
    padding: 28px 30px 18px;
}

.footer-container {
    max-width: 1320px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 18px;
    align-items: center;
}

.footer .brand {
    font-size: 20px;
}

.footer .brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 22px;
}

.footer-brand p {
    color: #aab7ce;
    font-size: 13px;
    margin-top: 5px;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-links a {
    color: #bac5d8;
    font-size: 12px;
    transition: 0.2s;
}

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

.copyright {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 14px;
    text-align: center;
    color: #9eabc2;
    font-size: 11px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 1050px) {
    .hero-decoration {
        opacity: 0.3;
    }

    .platform-section {
        grid-template-columns: 1fr 1fr;
    }

    .platform-intro {
        grid-column: 1 / -1;
    }

    .hero-container {
        gap: 25px;
    }

    .features {
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    .navbar {
        height: auto;
    }

    .nav-container {
        min-height: 68px;
        padding: 10px 18px;
        flex-wrap: wrap;
    }

    .brand {
        font-size: 23px;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        height: 40px;
        justify-content: center;
        gap: 22px;
        overflow-x: auto;
    }

    .nav-links a {
        white-space: nowrap;
        font-size: 12px;
    }

    .nav-cta {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding: 38px 20px 25px;
        gap: 25px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-description {
        font-size: 16px;
    }

    .features {
        gap: 12px;
        margin-top: 22px;
    }

    .feature {
        padding-right: 10px;
    }

    .feature strong {
        font-size: 10px;
    }

    .feature small {
        font-size: 9px;
    }

    .hero-decoration {
        display: none;
    }

    .url-form {
        padding: 9px;
        gap: 7px;
    }

    .primary-button {
        padding: 0 12px;
        font-size: 11px;
    }

    .supported-note {
        font-size: 10px;
        margin-left: 0;
    }

    .section-container {
        margin: 18px auto;
        padding-left: 16px;
        padding-right: 16px;
    }

    .platform-section {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 17px;
    }

    .platform-intro {
        grid-column: auto;
        margin-bottom: 4px;
    }

    .platform-card {
        min-height: 90px;
    }

    .result-section {
        grid-template-columns: 1fr;
    }

    .media-card {
        grid-template-columns: 1fr;
    }

    .thumbnail-wrap,
    .thumbnail-wrap img {
        min-height: 220px;
        max-height: 300px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        justify-content: center;
        gap: 15px;
    }

    .copyright {
        grid-column: auto;
    }
}

@media (max-width: 420px) {
    .nav-container {
        gap: 10px;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .theme-toggle {
        width: 37px;
        height: 37px;
    }

    .url-form {
        flex-direction: column;
        align-items: stretch;
    }

    .url-input-wrap {
        width: 100%;
    }

    .primary-button {
        width: 100%;
    }

    .features {
        justify-content: space-between;
    }

    .feature {
        gap: 5px;
    }

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

    .feature strong {
        white-space: normal;
    }
}

/* OPTIONAL DARK THEME */

/* ========================================
   CLIPFETCH - COMPLETE DARK THEME
======================================== */

body.dark-theme {
    --text: #f1f5ff;
    --muted: #b5c1d5;
    --border: #3b4a63;
    --surface: #202d45;
    --page: #111b2e;
    --hero-start: #243754;
    --hero-end: #30294d;

    background: var(--page);
    color: var(--text);
}

/* Main page */
body.dark-theme,
body.dark-theme main {
    background-color: var(--page);
    color: var(--text);
}

/* Headings */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme strong,
body.dark-theme label {
    color: var(--text);
}

/* Paragraphs and descriptions */
body.dark-theme p,
body.dark-theme small,
body.dark-theme .muted,
body.dark-theme .description,
body.dark-theme .subtitle,
body.dark-theme .supported-note,
body.dark-theme .about-section > p:last-child {
    color: var(--muted);
}

/* Navbar */
body.dark-theme .navbar {
    background: #202d45;
    border-color: var(--border);
}

body.dark-theme .navbar a,
body.dark-theme .nav-links a {
    color: #e2eaff;
}

body.dark-theme .navbar a:hover,
body.dark-theme .nav-links a:hover {
    color: #93a9ff;
}

/* Hero section */
body.dark-theme .hero {
    background: linear-gradient(
        135deg,
        var(--hero-start),
        var(--hero-end)
    );
    color: var(--text);
}

body.dark-theme .hero h1,
body.dark-theme .hero h2 {
    color: #ffffff;
}

body.dark-theme .hero p {
    color: #d0daee;
}

/* Cards */
body.dark-theme .platform-card,
body.dark-theme .media-card,
body.dark-theme .download-card,
body.dark-theme .url-form,
body.dark-theme .url-input-wrap {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

/* Platform section */
body.dark-theme .platform-section {
    background: #19263d;
    border-color: var(--border);
    color: var(--text);
}

/* URL input */
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select,
body.dark-theme .url-input-wrap input {
    background: #17243a;
    color: #f1f5ff;
    border-color: #465773;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: #94a3bb;
    opacity: 1;
}

body.dark-theme input:focus,
body.dark-theme textarea:focus,
body.dark-theme select:focus {
    border-color: #8298ff;
    outline-color: #8298ff;
}

/* Format selection */
body.dark-theme .format-option {
    background: #263550;
    border-color: #40506c;
    color: var(--text);
}

body.dark-theme .format-option:hover {
    background: #303d5a;
    border-color: #8298ff;
}

body.dark-theme .format-option:has(input:checked) {
    background: #303d64;
    border-color: #8298ff;
}

body.dark-theme .format-option span,
body.dark-theme .format-option strong {
    color: #edf2ff;
}

/* Buttons */
body.dark-theme button {
    color: #f1f5ff;
}

body.dark-theme .theme-toggle {
    background: #35435f;
    color: #ffffff;
    border-color: #536582;
}

body.dark-theme .theme-toggle:hover {
    background: #465878;
}

/* Media information */
body.dark-theme .media-details {
    border-color: var(--border);
}

body.dark-theme .format-info strong,
body.dark-theme .media-information h2,
body.dark-theme .detail-row strong,
body.dark-theme .download-card h3 {
    color: var(--text);
}

body.dark-theme .media-information p,
body.dark-theme .detail-row,
body.dark-theme .media-details p {
    color: var(--muted);
}

/* Badges */
body.dark-theme .supported-badge,
body.dark-theme .media-found-badge {
    background: #174b3b;
    color: #8df0bd;
}

/* Features */
body.dark-theme .features,
body.dark-theme .feature {
    color: var(--text);
}

body.dark-theme .feature p,
body.dark-theme .feature span {
    color: var(--muted);
}

body.dark-theme .feature strong {
    color: var(--text);
}

/* About section */
body.dark-theme .about-section {
    color: var(--text);
}

body.dark-theme .about-section h2,
body.dark-theme .about-section h3 {
    color: #ffffff;
}

/* Footer */
body.dark-theme footer {
    background: #17243a;
    border-color: var(--border);
    color: var(--muted);
}

body.dark-theme footer p,
body.dark-theme footer a {
    color: var(--muted);
}

body.dark-theme footer a:hover {
    color: #93a9ff;
}

/* Links */
body.dark-theme a {
    color: #9db2ff;
}

body.dark-theme a:hover {
    color: #c1ceff;
}

/* Icons */
body.dark-theme svg {
    color: inherit;
}

/* Horizontal lines */
body.dark-theme hr {
    border-color: var(--border);
}

/* Selection */
body.dark-theme ::selection {
    background: #5369a8;
    color: #ffffff;
}

/* Scrollbar */
body.dark-theme {
    scrollbar-color: #52627d #17243a;
}
/* DARK MODE - MEDIA TYPE VISIBILITY FIX */

body.dark-theme .format-option,
body.dark-theme .format-option label {
    color: #f1f5ff !important;
}

body.dark-theme .format-option span,
body.dark-theme .format-option strong,
body.dark-theme .format-option small {
    color: #e2eaff !important;
}

body.dark-theme .format-option p {
    color: #b5c1d5 !important;
}

body.dark-theme .format-option input {
    accent-color: #8298ff;
}

body.dark-theme .format-option:has(input:checked) {
    background: #303d64;
    border-color: #8298ff;
}

body.dark-theme .format-option:has(input:checked) * {
    color: #ffffff !important;
}
/* FIX: DARK MODE QUALITY BADGE TEXT VISIBILITY */

body.dark-theme .format-option .quality-tag {
    background: #e8edff;
    color: #3036a8 !important;
}

/* Keep badge readable even when format is selected */
body.dark-theme .format-option:has(input:checked) .quality-tag {
    background: #e8edff;
    color: #3036a8 !important;
}
/* FIX: Status message colors in dark theme */

body.dark-theme p.status-message.success {
    color: #22c55e;
    font-weight: 700;
}

body.dark-theme p.status-message.error {
    color: #ef4444;
    font-weight: 700;
}
/* ========================================
   CLIPFETCH MOBILE LAYOUT IMPROVEMENTS
======================================== */

@media (max-width: 768px) {

    /* Hide hero feature items on mobile */
    .features {
        display: none !important;
    }

    /* Reorder main sections on mobile */
    main {
        display: flex;
        flex-direction: column;
    }

    #home {
        order: 1;
        width: 100%;
    }

    /* Show media result immediately after hero */
    #mediaResult {
        order: 2;
        width: 100%;
        margin-top: 15px;
    }

    /* Keep supported platforms below media result */
    #platforms {
        order: 3;
        width: 100%;
    }

    #about {
        order: 4;
        width: 100%;
    }

    /* Keep result hidden until media is fetched */
    #mediaResult[hidden] {
        display: none !important;
    }

}
