/*
Theme Name:   Pixwell Child
Template:     pixwell
Version:      1.0.0
Text Domain:  pixwell-child
*/
/* ==============================
   DEEP FABLE — TALE TEMPLATE
   ============================== */

/* WRAPPER */
.df-tale-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* HERO */
.df-tale-hero {
    margin-bottom: 32px;
}

.df-tale-cover {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.df-tale-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.df-tale-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.df-tag {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.df-tag-age {
    background: #E8F5E9;
    color: #388E3C;
}

.df-tag-theme {
    background: #E3F2FD;
    color: #1565C0;
}

.df-tag-lang {
    background: #F3E5F5;
    color: #6A1B9A;
}

.df-tale-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 12px;
}

.df-tale-info {
    font-size: 13px;
    color: #888;
}

/* AUDIO */
.df-tale-audio {
    background: #F8F8F8;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.df-audio-label {
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.df-tale-audio audio {
    flex: 1;
    min-width: 200px;
    height: 36px;
}

.df-audio-duration {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
}

/* FEATURED QUOTE */
.df-tale-quote {
    border-left: 3px solid #A5D6A7;
    padding: 12px 20px;
    margin: 24px 0;
    font-size: 17px;
    font-style: italic;
    line-height: 1.6;
    color: #444;
    background: #F9FBE7;
    border-radius: 0 8px 8px 0;
}

/* CONTENT */
.df-tale-content {
    font-size: 17px;
    line-height: 1.9;
    color: #222;
}

.df-tale-content p {
    margin-bottom: 20px;
}

/* PARENT NOTE */
.df-parent-note {
    background: #FFF8E1;
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 32px;
}

.df-parent-note-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #F9A825;
    margin-bottom: 8px;
}

.df-parent-note p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

/* SERİ NAVİGASYON */
.df-series-nav {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #EEE;
}

.df-series-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.df-series-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.df-series-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    transition: background .15s;
}

.df-series-item:hover {
    background: #F5F5F5;
}

.df-series-item.current {
    background: #F1F8E9;
    color: #2E7D32;
    font-weight: 500;
}

.df-series-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #EEE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.df-series-item.current .df-series-num {
    background: #2E7D32;
    color: #FFF;
}

/* ==============================
   SIDEBAR
   ============================== */

.df-sidebar {
    position: sticky;
    top: 24px;
}

.df-sidebar-widget {
    background: #FFF;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.df-sidebar-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
}

/* PROGRESS BAR */
.df-progress-bar {
    height: 4px;
    background: #EEE;
    border-radius: 2px;
    overflow: hidden;
    margin: 10px 0 6px;
}

.df-progress-fill {
    height: 100%;
    background: #66BB6A;
    border-radius: 2px;
    transition: width .3s;
}

.df-progress-label {
    font-size: 11px;
    color: #999;
}

/* MERCH */
.df-merch-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #EEE;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: background .15s;
}

.df-merch-link:hover {
    background: #F9F9F9;
}

.df-merch-icon {
    font-size: 20px;
}

.df-merch-text {
    flex: 1;
}

.df-merch-arrow {
    color: #AAA;
}

/* İLGİLİ MASALLAR */
.df-related-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #F0F0F0;
    text-decoration: none;
    color: #333;
}

.df-related-item:last-child {
    border-bottom: none;
}

.df-related-item:hover .df-related-title {
    color: #2E7D32;
}

.df-related-thumb {
    width: 56px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F5F5F5;
}

.df-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.df-related-title {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

.df-related-meta {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media ( max-width: 768px ) {
    .df-tale-wrapper {
        grid-template-columns: 1fr;
    }

    .df-sidebar {
        position: static;
    }

    .df-tale-title {
        font-size: 24px;
    }

    .df-tale-content {
        font-size: 16px;
    }
}