/* ==========================================================================
   Epdexx LinkStore — Default theme
   Migrated from the v1 inline single/home styles.
   ========================================================================== */

:root {
    --bg: #08080b;
    --card: #0f1116cc;
    --muted: #bfc4d1;
    --accent: #ff0077;
    --accent-2: #0069d9;
    --soft-glow: 0 8px 30px rgba(255, 0, 119, 0.12);
    --btn-radius: 12px;
    --btn-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    --glass-border: 1px solid rgba(255, 255, 255, 0.04);
    --max-width: 1100px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

/* --- Single (download index) layout ------------------------------------ */
body.epdexx-single {
    margin: 0;
    font-family: 'Oxanium', system-ui, "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, rgba(10, 10, 12, 1) 0%, rgba(6, 6, 8, 1) 100%);
    color: var(--muted);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    padding: 40px 18px;
}

.wrap { width: 100%; max-width: var(--max-width); }

.title-wrap { text-align: center; margin-bottom: 22px; }

.site-title { position: relative; overflow: hidden; color: #fff; }

.site-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shineSwipe 3s ease-in-out infinite;
}

@keyframes shineSwipe {
    0% { left: -120%; }
    60% { left: 120%; }
    100% { left: 120%; }
}

.site-title::after {
    content: "";
    display: block;
    height: 4px;
    width: 60%;
    margin: 10px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    filter: blur(6px);
    opacity: 0.95;
    transform: translateZ(0);
}

.site-title-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.12;
    filter: blur(14px);
    background: linear-gradient(90deg, rgba(255, 0, 119, 0.8), rgba(0, 105, 217, 0.6));
    border-radius: 6px;
}

.section-title {
    margin: 0 0 14px 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    position: relative;
    padding-bottom: 6px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 55px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 10px rgba(255, 0, 119, .4);
    animation: epUnderline 2.2s ease-in-out infinite;
}

@keyframes epUnderline {
    0% { width: 40px; opacity: .7; }
    50% { width: 85px; opacity: 1; }
    100% { width: 40px; opacity: .7; }
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    padding: 20px;
    margin: 14px 0;
    box-shadow: var(--soft-glow);
    border: var(--glass-border);
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.card .section-title { margin: 0 0 12px 0; font-size: 1.05rem; }

.links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.btn-download {
    --accent-color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--btn-radius);
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    box-shadow: var(--btn-shadow);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.03);
    min-height: 44px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.btn-download .icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-download .icon img { width: 18px; height: 18px; object-fit: contain; display: block; }

.btn-download, .btn-download:hover, .btn-download:focus, .btn-download:active { text-decoration: none !important; }

.btn-download:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 8px 40px rgba(255, 0, 119, 0.06);
}

.btn-download:active { transform: translateY(-2px); }

.btn-download[data-accent="true"] { border: 1px solid color-mix(in srgb, var(--accent-color) 40%, transparent); }

/* Screenshots / episodes grids */
.screenshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.screenshots img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.episode-node { display: block; color: #fff; text-decoration: none; background: rgba(255,255,255,0.03); border-radius: 8px; padding: 8px; }
.episode-node img { width: 100%; border-radius: 6px; display: block; margin-bottom: 6px; }

/* FAQ */
.faq details { border-bottom: 1px solid rgba(255,255,255,0.06); padding: 10px 0; }
.faq summary { cursor: pointer; color: #fff; font-weight: 700; }

.footer { margin-top: 28px; font-size: 13px; color: rgba(255, 255, 255, 0.55); text-align: center; }
.footer a { color: var(--accent); text-decoration: none; }

@media (max-width: 640px) {
    .site-title { font-size: 1.65rem; }
    .btn-download { padding: 12px 14px; width: 100%; justify-content: flex-start; }
    .links { flex-direction: column; gap: 12px; }
}

/* --- Home masthead layout ---------------------------------------------- */
body.epdexx-home {
    font-family: 'Oxanium', cursive;
    margin: 0;
    background: linear-gradient(135deg, #1f1c2c, #928dab);
    color: #fff;
    overflow: hidden;
}

.masthead {
    min-height: 100vh;
    /* Background image is theme-controlled: supplied inline from the active
       theme's config default or the Appearance override. Position/size/repeat
       stay here so the appearance is identical to v1. */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 4rem 1rem;
}

.masthead::before { content: ""; position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.6); }
.masthead .container { position: relative; z-index: 2; }
.masthead h1 { font-size: 3rem; font-weight: 700; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); }

.glow-divider { width: 100px; height: 5px; background: #ff0099; margin: 20px auto; border-radius: 3px; box-shadow: 0 0 20px #ff0099, 0 0 30px #ff0099; }

.ref-links a {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(5px);
    border: 1px solid #ff0099;
    transition: all 0.3s ease;
}

.ref-links a:hover { background: #ff0099; color: #000; box-shadow: 0 0 20px #ff0099; }

.btn-anime {
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 12px 30px;
    background: linear-gradient(to right, #ff0099, #493240);
    color: #fff;
    border: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 153, 0.3);
}

.btn-anime:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(255, 0, 153, 0.6); }

.floating-orbs { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; overflow: hidden; }
.floating-orbs span {
    position: absolute;
    display: block;
    width: 25px;
    height: 25px;
    background: rgba(255, 0, 153, 0.3);
    border-radius: 50%;
    animation: float 6s linear infinite;
}
.floating-orbs span:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-orbs span:nth-child(2) { left: 30%; animation-delay: 2s; }
.floating-orbs span:nth-child(3) { left: 50%; animation-delay: 4s; }
.floating-orbs span:nth-child(4) { left: 70%; animation-delay: 1s; }
.floating-orbs span:nth-child(5) { left: 90%; animation-delay: 3s; }

@keyframes float {
    0% { top: 100%; transform: translateY(0) scale(1); }
    100% { top: -10%; transform: translateY(-100%) scale(0.5); }
}
