/**
 * treatments.css
 * Premier Dental Clinic — Treatments & Packages
 * Treatment/Package Hero, Benefits, Content, Process,
 * Package Details, CTA, Archive & Listing
 * Sadece treatment ve package sayfalarında yüklenir.
 */

/* ====================================
   TREATMENT / PACKAGE PAGES — BENEFITS
   ==================================== */
.treatment-benefits,
.package-highlights {
    padding: var(--space-3xl) 0;
    background: white;
}

.benefits-grid,
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.benefit-card {
    text-align: center;
    padding: var(--space-lg);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
}

.benefit-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon img {
    max-width: 100%;
    max-height: 100%;
}

.benefit-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.benefit-card p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.7;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--space-md);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-base);
}

.highlight-item:hover {
    border-color: var(--primary-color);
    background: rgba(9, 75, 133, 0.02);
}

.highlight-item svg {
    flex-shrink: 0;
}

.highlight-item span {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .benefits-grid,
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* ====================================
   TREATMENT CONTENT
   ==================================== */
.treatment-content,
.content-wrapper {
    padding: var(--space-3xl) 0;
    background: white;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    font-size: var(--font-size-sm);
    line-height: 1.8;
    color: var(--text-color);
}

.content-wrapper h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--text-color);
}

.content-wrapper h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.content-wrapper p {
    margin-bottom: var(--space-md);
}

.content-wrapper ul,
.content-wrapper ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.content-wrapper li {
    margin-bottom: var(--space-xs);
}

/* ====================================
   TREATMENT PROCESS / TIMELINE
   ==================================== */
.treatment-process,
.package-timeline {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.timeline-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-step {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    position: relative;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    width: 2px;
    height: calc(100% + var(--space-md));
    background: var(--border-color);
}

.timeline-marker {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-md);
    box-shadow: var(--shadow-md);
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-color);
}

.timeline-content p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 640px) {
    .timeline-step { gap: var(--space-sm); }
    .timeline-marker { width: 36px; height: 36px; font-size: var(--font-size-sm); }
    .timeline-step:not(:last-child)::after { left: 18px; }
}

/* ====================================
   PACKAGE DETAILS
   ==================================== */
.package-details {
    padding: var(--space-3xl) 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

.details-col {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.details-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-color);
}

.details-list {
    list-style: none;
}

.details-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.details-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.details-list svg {
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* ====================================
   CTA SECTIONS (treatment & package)
   ==================================== */
.treatment-cta,
.package-cta {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, rgba(9, 75, 133, 0.05) 0%, rgba(145, 175, 201, 0.08) 100%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .cta-content h2 { font-size: var(--font-size-2xl); }
}

@media (max-width: 480px) {
    .cta-content h2 { font-size: var(--font-size-xl); }
    .cta-content .btn { width: 100%; }
}

/* ====================================
   TREATMENT BEFORE/AFTER (single sayfada)
   ==================================== */
.swiper-button-prev,
.swiper-button-next {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: var(--border-radius-full);
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
    transition: all var(--transition-base);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px;
    font-weight: 900;
}

.swiper-pagination {
    position: relative;
    margin-top: var(--space-md);
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    opacity: 1;
    transition: all var(--transition-base);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 5px;
}

/* ====================================
   ARCHIVE & LISTING PAGES
   ==================================== */
.treatments-archive {
    padding: var(--space-3xl) 0;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.treatment-card {
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.treatment-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.treatment-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-secondary);
}

.treatment-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.treatment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.treatment-card:hover .treatment-image img {
    transform: scale(1.08);
}

.treatment-content {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.treatment-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.treatment-title a {
    text-decoration: none;
    color: var(--text-color);
    transition: color var(--transition-base);
}

.treatment-title a:hover {
    color: var(--primary-color);
}

.treatment-excerpt {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    flex: 1;
}

@media (max-width: 1024px) {
    .treatments-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .treatments-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: var(--space-md);
    }
}

@media (max-width: 640px) {
    .treatments-grid { grid-template-columns: 1fr; }
}
