@import url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css");

:root {
    --primary: #168f72;
    --primary-dark: #0d725a;
    --secondary: #237eaf;
    --text: #18323b;
    --muted: #6d8087;
    --bg: #f5faf9;
    --white: #ffffff;
    --soft: #e8f5f1;
    --border: #dfecea;
    --danger: #c74c4c;
    --shadow: 0 15px 45px rgba(26, 78, 75, 0.09);
}

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

html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    font-family: Vazirmatn, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.9;
}

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

.container {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 800;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    color: white;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), #46b7d7);
    box-shadow: 0 8px 20px rgba(22, 143, 114, 0.22);
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--muted);
    font-size: 0.9rem;
}

nav a:hover,
.back-link:hover {
    color: var(--primary);
}

.hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(104, 198, 213, 0.15), transparent 24rem),
        linear-gradient(135deg, #ffffff, #edf9f6);
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 50px;
}

.badge,
.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 700;
}

.badge {
    padding: 5px 13px;
    border-radius: 25px;
    background: var(--soft);
    margin-bottom: 17px;
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.35;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-content p {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.06rem;
    margin-bottom: 26px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    border-radius: 11px;
    padding: 10px 19px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.2s ease;
}

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

.btn-primary {
    color: white;
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-light {
    color: var(--text);
    background: white;
    border: 1px solid var(--border);
}

.hero-art {
    position: relative;
    min-height: 350px;
    display: grid;
    place-items: center;
}

.earth {
    display: grid;
    place-items: center;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    font-size: 8rem;
    background: linear-gradient(145deg, #dff6f0, #ccecf7);
    box-shadow:
        0 0 0 20px rgba(35, 126, 175, 0.05),
        0 0 0 48px rgba(35, 126, 175, 0.035),
        0 30px 60px rgba(42, 104, 107, 0.16);
}

.satellite {
    position: absolute;
    top: 10%;
    left: 10%;
    font-size: 2.7rem;
    transform: rotate(-18deg);
}

.art-card {
    position: absolute;
    right: 5%;
    bottom: 4%;
    width: 220px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.art-card small {
    display: block;
    color: var(--muted);
}

.art-card strong {
    color: var(--primary);
}

.section {
    padding: 75px 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 27px;
}

.section-title h2 {
    font-size: 1.85rem;
    margin-top: 5px;
}

.section-title p {
    color: var(--muted);
    font-size: 0.9rem;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.episode-card,
.about-box,
.topics-box,
.admin-form-card,
.admin-episode,
.auth-card {
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow);
}

.episode-card {
    padding: 22px;
    border-radius: 18px;
    transition: 0.2s ease;
}

.episode-card:hover {
    transform: translateY(-4px);
    border-color: #a9d9cb;
}

.episode-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 13px;
}

.episode-number {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.episode-date {
    color: var(--muted);
    font-size: 0.75rem;
}

.episode-card h3 {
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.episode-card p {
    min-height: 82px;
    color: var(--muted);
    font-size: 0.87rem;
    margin-bottom: 15px;
}

audio {
    width: 100%;
    height: 38px;
}

.about-section {
    background: #edf8f5;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
}

.about-box,
.topics-box {
    padding: 30px;
    border-radius: 20px;
}

.about-box h2 {
    font-size: 1.55rem;
    margin: 8px 0 12px;
}

.about-box p,
.help,
.muted {
    color: var(--muted);
}

.topics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.topics span {
    padding: 6px 13px;
    border-radius: 22px;
    color: var(--secondary);
    background: #edf7fb;
    border: 1px solid #cee8f2;
    font-size: 0.82rem;
}

.footer {
    padding: 27px 0;
    color: var(--muted);
    background: white;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #edf9f6, #f8fcff);
}

.auth-card {
    width: min(430px, 100%);
    padding: 32px;
    border-radius: 22px;
}

.auth-brand {
    margin-bottom: 28px;
}

.auth-card h1 {
    font-size: 1.45rem;
    margin-bottom: 5px;
}

.form,
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.auth-card .form {
    margin-top: 24px;
}

label {
    font-size: 0.88rem;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    color: var(--text);
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    padding: 12px 13px;
    font-family: inherit;
    font-size: 0.9rem;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 143, 114, 0.08);
}

.alert {
    color: #a23e3e;
    background: #fff0f0;
    border: 1px solid #f3cccc;
    border-radius: 10px;
    padding: 9px 12px;
    margin-top: 18px;
    font-size: 0.85rem;
}

.back-link {
    display: block;
    color: var(--muted);
    text-align: center;
    font-size: 0.85rem;
    margin-top: 20px;
}

.admin-page {
    padding: 50px 0 80px;
}

.admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 25px;
}

.admin-heading h1 {
    font-size: 1.9rem;
    margin-top: 5px;
}

.admin-form-card {
    padding: 28px;
    border-radius: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.help {
    font-size: 0.78rem;
}

.admin-form .btn {
    align-self: flex-start;
    margin-top: 10px;
}

.admin-list {
    margin-top: 55px;
}

.admin-episode {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 14px;
}

.admin-episode h3 {
    margin: 5px 0;
}

.admin-episode p {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.admin-episode audio {
    max-width: 500px;
}

.delete-btn {
    border: 1px solid #f0caca;
    color: var(--danger);
    background: #fff5f5;
    border-radius: 9px;
    cursor: pointer;
    padding: 8px 14px;
    font-family: inherit;
}

.empty-state {
    padding: 45px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed #c8ddd8;
    border-radius: 16px;
    background: white;
}

@media (max-width: 850px) {
    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .episode-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        padding-top: 50px;
        padding-bottom: 60px;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    nav {
        display: none;
    }

    .episode-grid {
        grid-template-columns: 1fr;
    }

    .section-title,
    .admin-heading {
        display: block;
    }

    .section-title p {
        margin-top: 8px;
    }

    .admin-heading .btn {
        margin-top: 18px;
    }

    .admin-episode {
        display: block;
    }

    .delete-btn {
        margin-top: 15px;
    }

    .footer-inner {
        display: block;
    }

    .footer-inner a {
        display: block;
        margin-top: 8px;
    }
}
/* امکانات جدید پادکست */

.episode-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    margin-bottom: 1rem;
}

.placeholder-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    font-size: 3rem;
}

.episode-card h3 a {
    color: inherit;
    text-decoration: none;
}

.episode-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
}

.copy-link-btn,
.nav-button {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.copy-link-btn {
    color: #2563eb;
    padding: 0.5rem;
}

.subscribe-section {
    background: #f8fafc;
}

.subscribe-box {
    border-radius: 24px;
    background: white;
    padding: 2rem;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

.subscribe-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    max-width: 650px;
}

.subscribe-form input {
    flex: 1;
    min-width: 0;
}

.success-message,
.error-message {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.success-message {
    color: #166534;
    background: #dcfce7;
}

.error-message {
    color: #991b1b;
    background: #fee2e2;
}

.episode-page {
    padding: 3rem 0;
}

.episode-detail-card {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

.episode-detail-thumbnail {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 1.5rem;
}

.episode-detail-card h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin: 0.75rem 0;
}

.episode-description {
    line-height: 2;
    white-space: pre-line;
}

.detail-audio {
    width: 100%;
    margin: 1.5rem 0;
}

.share-section {
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
    padding-top: 1.5rem;
}

.share-section h2 {
    font-size: 1.2rem;
}

.share-buttons {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.share-btn {
    border: 0;
    border-radius: 9px;
    color: white;
    cursor: pointer;
    display: inline-block;
    font-family: inherit;
    padding: 0.7rem 1rem;
    text-decoration: none;
}

.share-btn.telegram {
    background: #229ed9;
}

.share-btn.whatsapp {
    background: #16a34a;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.x {
    background: #111827;
}

.share-btn.copy {
    background: #64748b;
}

.admin-episode-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.admin-thumbnail {
    width: 130px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.login-card {
    width: min(100%, 430px);
    background: white;
    border-radius: 22px;
    padding: 2rem;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.1);
}

.login-card .brand {
    display: inline-flex;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    margin-top: 1.25rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

@media (max-width: 650px) {
    .subscribe-form {
        flex-direction: column;
    }

    .admin-episode-content {
        flex-direction: column;
    }

    .admin-thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}