/* ==========================================================================
   Tazedal Avokado Olgunlaştırma Rehberi Stylesheet
   ========================================================================== */

.ripening-guide-page {
    background-color: #FAF7F2;
    color: #1a1a1a;
    font-family: var(--td-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    padding-top: var(--td-header-height, 128px);
    padding-bottom: 60px;
}

.page-template-page-avokado-olgunlastirma-rehberi-php .site-header,
.page-id-235 .site-header {
    background-color: rgba(250, 247, 242, 0.96) !important;
    backdrop-filter: blur(16px) !important;
}

/* --- 1. Hero --- */
.rg-hero {
    background: linear-gradient(180deg, #F3EFE8 0%, #FAF7F2 100%);
    padding: 48px 0 32px 0;
    text-align: center;
    border-bottom: 1px solid #ECE7DE;
}

.rg-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.rg-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #C85805;
    background-color: #FFF2E8;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.rg-hero-title {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.25;
    color: #183321;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.rg-hero-desc {
    font-size: clamp(15px, 2vw, 17px);
    line-height: 1.6;
    color: #4B5563;
    margin: 0 auto 28px auto;
    max-width: 680px;
}

.rg-hero-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.rg-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #FFFFFF;
    border: 1px solid #E5DFD5;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #2e4a36;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.rg-badge-icon {
    font-size: 15px;
}

/* --- Ortak Bölüm Başlıkları --- */
.rg-section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 36px auto;
}

.rg-section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #2e4a36;
    margin-bottom: 8px;
}

.rg-section-title {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 800;
    color: #183321;
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
}

.rg-section-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #6B7280;
    margin: 0;
}

/* --- 2. Video Gösterim Alanı --- */
.rg-video-section {
    padding: 40px 0 50px 0;
}

.rg-video-card {
    background-color: #FFFFFF;
    border: 1px solid #EAE5DC;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    max-width: 900px;
    margin: 0 auto;
}

.rg-video-header {
    text-align: center;
    margin-bottom: 24px;
}

.rg-video-title {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    color: #183321;
    margin: 6px 0 8px 0;
}

.rg-video-subtitle {
    font-size: 14.5px;
    color: #6B7280;
    margin: 0;
}

.rg-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    background-color: #183321;
    box-shadow: 0 10px 25px rgba(24, 51, 33, 0.15);
    aspect-ratio: 16 / 9;
    transition: all 0.3s ease;
}

.rg-player-wrapper.is-vertical {
    aspect-ratio: 9 / 16;
    max-width: 320px;
    max-height: 560px;
    margin: 0 auto;
    border-radius: 18px;
}

.rg-player-wrapper.is-horizontal {
    aspect-ratio: 16 / 9;
    max-width: 680px;
}

.rg-player-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rg-iframe-holder {
    width: 100%;
    height: 100%;
}

.rg-iframe-holder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.rg-video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.rg-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.rg-video-placeholder:hover .rg-poster-img {
    transform: scale(1.02);
}

.rg-poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(24, 51, 33, 0.75) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    text-align: center;
}

.rg-play-btn {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #C85805;
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(200, 88, 5, 0.45);
    transition: transform 0.2s ease, background-color 0.2s ease;
    margin-bottom: 20px;
}

.rg-play-btn svg {
    margin-left: 3px; /* visual center for play icon */
}

.rg-play-btn:hover {
    transform: scale(1.08);
    background-color: #E06D15;
}

.rg-play-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: rgPulse 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes rgPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.35); opacity: 0; }
}

.rg-poster-caption {
    color: #FFFFFF;
}

.rg-caption-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #FBD5A5;
    margin-bottom: 4px;
}

.rg-caption-title {
    display: block;
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 16px;
    font-weight: 700;
}

.rg-video-timeline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.rg-timeline-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #FAF7F2;
    border: 1px solid #EAE4D9;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.rg-timeline-chip:hover {
    background-color: #183321;
    border-color: #183321;
}

.rg-timeline-chip:hover .rg-time-label {
    color: #FFFFFF;
}

.rg-timeline-chip:hover .rg-time {
    background-color: #C85805;
    color: #FFFFFF;
}

.rg-time {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-weight: 700;
    color: #C85805;
    background: #FFF1E6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    transition: all 0.2s ease;
}

.rg-time-label {
    color: #374151;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* --- 3. Gün Gün Olgunlaşma Çizelgesi --- */
.rg-stages-section {
    padding: 40px 0 50px 0;
}

.rg-stages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rg-stage-card {
    background-color: #FFFFFF;
    border: 1px solid #E8E2D8;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rg-stage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.rg-stage-header {
    padding: 20px 24px;
    border-bottom: 1px solid #F0ECE4;
    background-color: #FAF8F4;
}

.rg-stage-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.rg-stage-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.rg-stage-dot.green {
    background-color: #15803D;
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.2);
}

.rg-stage-dot.yellow {
    background-color: #EAB308;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
}

.rg-stage-dot.brown {
    background-color: #854D0E;
    box-shadow: 0 0 0 3px rgba(133, 77, 14, 0.2);
}

.rg-stage-days {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: #183321;
}

.rg-stage-state {
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    display: block;
}

.rg-stage-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rg-stage-name {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 17px;
    font-weight: 700;
    color: #183321;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.rg-stage-detail {
    font-size: 14px;
    line-height: 1.6;
    color: #4B5563;
    margin: 0 0 20px 0;
}

.rg-action-box {
    margin-top: auto;
    background-color: #FAF7F2;
    border-left: 3px solid #C85805;
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #374151;
}

.rg-action-title {
    display: block;
    font-weight: 700;
    color: #183321;
    margin-bottom: 4px;
    font-size: 13px;
}

.rg-action-box p {
    margin: 0;
}

/* --- 4. Asla Yapılmaması Gereken 3 Hata --- */
.rg-warnings-section {
    padding: 30px 0 50px 0;
}

.rg-warning-container {
    background-color: #183321;
    color: #FFFFFF;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 12px 36px rgba(24, 51, 33, 0.2);
}

.rg-warning-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #F87171;
    background-color: rgba(239, 68, 68, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.rg-warning-title {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 10px 0;
}

.rg-warning-desc {
    font-size: 15px;
    color: #D1D5DB;
    margin: 0 0 36px 0;
    max-width: 640px;
    line-height: 1.55;
}

.rg-warning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.rg-warning-item {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
}

.rg-warning-num {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 28px;
    font-weight: 800;
    color: #F87171;
    margin-bottom: 12px;
    line-height: 1;
}

.rg-warning-heading {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.rg-warning-item p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #9CA3AF;
    margin: 0;
}

/* --- 5. Mutfak Tüyoları --- */
.rg-tips-section {
    padding: 20px 0 50px 0;
}

.rg-tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.rg-tip-card {
    background-color: #FFFFFF;
    border: 1px solid #E8E2D8;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.rg-tip-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.rg-tip-title {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 17px;
    font-weight: 700;
    color: #183321;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.rg-tip-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #4B5563;
    margin: 0;
}

/* --- 6. Sıkça Sorulan Sorular --- */
.rg-faq-section {
    padding: 30px 0 50px 0;
}

.rg-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rg-faq-item {
    background-color: #FFFFFF;
    border: 1px solid #EAE4D9;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.rg-faq-item[open] {
    border-color: #C85805;
}

.rg-faq-question {
    padding: 18px 24px;
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 15.5px;
    font-weight: 700;
    color: #183321;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}

.rg-faq-question::-webkit-details-marker {
    display: none;
}

.rg-faq-arrow {
    color: #6B7280;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.rg-faq-item[open] .rg-faq-arrow {
    transform: rotate(180deg);
    color: #C85805;
}

.rg-faq-answer {
    padding: 0 24px 20px 24px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #4B5563;
    border-top: 1px solid #F5F1EA;
    padding-top: 14px;
}

.rg-faq-answer p {
    margin: 0;
}

/* --- 7. Alt Eylem & CTA Bloğu --- */
.rg-cta-section {
    padding: 30px 0 20px 0;
}

.rg-cta-box {
    background: linear-gradient(135deg, #23472C 0%, #183321 100%);
    border-radius: 20px;
    padding: 44px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 10px 30px rgba(24, 51, 33, 0.18);
}

.rg-cta-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #FBD5A5;
    margin-bottom: 8px;
}

.rg-cta-title {
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 8px 0;
}

.rg-cta-text {
    font-size: 14.5px;
    color: #D1D5DB;
    margin: 0;
}

.rg-cta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-rg-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #C85805;
    color: #FFFFFF;
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(200, 88, 5, 0.35);
    white-space: nowrap;
}

.btn-rg-primary:hover {
    background-color: #E06D15;
    transform: translateY(-2px);
    color: #FFFFFF;
}

.btn-rg-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-family: var(--td-font-heading, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 22px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.btn-rg-whatsapp:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 991px) {
    .rg-stages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rg-warning-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rg-tips-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rg-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 36px 24px;
    }

    .rg-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-rg-primary,
    .btn-rg-whatsapp {
        width: 100%;
    }

    .ripening-guide-page {
        padding-bottom: calc(var(--td-bottom-nav-height, 64px) + 40px);
    }
}

@media (max-width: 640px) {
    .rg-hero {
        padding: 32px 0 24px 0;
    }

    .rg-hero-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .rg-badge-item {
        justify-content: center;
    }

    .rg-video-card {
        padding: 20px 16px;
    }

    .rg-warning-container {
        padding: 32px 20px;
    }

    .rg-play-btn {
        width: 58px;
        height: 58px;
        margin-bottom: 12px;
    }

    .rg-play-btn svg {
        width: 22px;
        height: 22px;
    }

    .rg-player-wrapper {
        aspect-ratio: 9 / 16 !important;
        max-width: 280px !important;
        max-height: 500px !important;
        margin: 0 auto !important;
        border-radius: 16px !important;
    }

    .rg-player-wrapper.is-horizontal {
        aspect-ratio: 16 / 9 !important;
        max-width: 100% !important;
        max-height: none !important;
    }

    .rg-player-wrapper video,
    .rg-player-wrapper iframe,
    .rg-poster-img,
    .rg-iframe-holder,
    .rg-iframe-holder iframe,
    .rg-video-placeholder {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}
