/**
 * Changelog (Yenilikler) Page Styles
 * CiftcidenEve Design System
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --cl-primary: #b9475e;
    --cl-primary-hover: #a03d52;
    --cl-primary-light: #f8e8eb;
    --cl-secondary: #1A6355;
    --cl-secondary-light: #e8f4f1;
    --cl-accent: #e79275;
    --cl-accent-light: #fef3ef;
    --cl-bg-cream: #FFF3E5;
    --cl-bg-white: #ffffff;
    --cl-text-dark: #1A6355;
    --cl-text-body: #4D4D4D;
    --cl-text-muted: #7d91a3;
    --cl-border: #e6e6e6;
    --cl-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --cl-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --cl-radius: 16px;
    --cl-radius-sm: 8px;
    --cl-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Page Container
   ============================================ */
.changelog-page {
    background: var(--cl-bg-cream);
    min-height: 100vh;
}

.changelog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Hero Section
   ============================================ */
.changelog-hero {
    background: linear-gradient(135deg, var(--cl-secondary) 0%, #0d3d33 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.changelog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(185, 71, 94, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.changelog-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(231, 146, 117, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.changelog-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.changelog-hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px;
    line-height: 1.2;
}

.changelog-hero-title span {
    color: var(--cl-accent);
}

.changelog-hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   Content Section
   ============================================ */
.changelog-content {
    padding: 40px 0 80px;
    position: relative;
    margin-top: -30px;
}

/* ============================================
   Filter Tabs
   ============================================ */
.changelog-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    background: var(--cl-bg-white);
    padding: 16px 24px;
    border-radius: var(--cl-radius);
    box-shadow: var(--cl-shadow);
}

.changelog-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cl-text-body);
    background: var(--cl-bg-cream);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--cl-transition);
    font-family: 'Fira Sans', sans-serif;
}

.changelog-filter-btn:hover {
    background: var(--cl-primary-light);
    color: var(--cl-primary);
}

.changelog-filter-btn.active {
    background: var(--cl-primary);
    color: white;
    border-color: var(--cl-primary);
}

.filter-icon {
    font-size: 16px;
}

.filter-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.changelog-filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   Timeline
   ============================================ */
.changelog-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ============================================
   Changelog Cards
   ============================================ */
.changelog-card {
    background: var(--cl-bg-white);
    border-radius: var(--cl-radius);
    padding: 28px;
    box-shadow: var(--cl-shadow);
    transition: var(--cl-transition);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    border-left: 4px solid var(--cl-border);
}

.changelog-card:hover {
    box-shadow: var(--cl-shadow-hover);
    transform: translateY(-4px);
}

/* Category-specific borders */
.changelog-card[data-category="customer"] {
    border-left-color: var(--cl-primary);
}

.changelog-card[data-category="producer"] {
    border-left-color: var(--cl-secondary);
}

.changelog-card[data-category="general"] {
    border-left-color: var(--cl-accent);
}

/* Card visibility animation */
.changelog-card-visible {
    display: block;
    animation: fadeInUp 0.4s ease forwards;
}

.changelog-card-hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Header */
.changelog-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.changelog-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.changelog-category-customer {
    background: var(--cl-primary-light);
    color: var(--cl-primary);
}

.changelog-category-producer {
    background: var(--cl-secondary-light);
    color: var(--cl-secondary);
}

.changelog-category-general {
    background: var(--cl-accent-light);
    color: #a55b3c;
}

.changelog-date {
    font-size: 13px;
    color: var(--cl-text-muted);
    font-weight: 500;
}

/* Card Body */
.changelog-card-body {
    margin-bottom: 20px;
}

.changelog-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--cl-text-dark);
    margin: 0 0 12px;
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.changelog-icon {
    flex-shrink: 0;
    font-size: 28px;
    line-height: 1;
}

.changelog-desc {
    font-size: 15px;
    color: var(--cl-text-body);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   Benefits Section
   ============================================ */
.changelog-benefits {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.changelog-benefit-group {
    background: var(--cl-secondary-light);
    border-radius: var(--cl-radius-sm);
    padding: 16px 20px;
}

.changelog-benefit-group.changelog-benefit-society {
    background: var(--cl-accent-light);
}

.changelog-benefit-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--cl-text-dark);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.changelog-benefit-title .benefit-icon {
    font-size: 18px;
}

.changelog-benefit-list {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: none;
}

.changelog-benefit-list li {
    font-size: 14px;
    color: var(--cl-text-body);
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
}

.changelog-benefit-list li::before {
    content: '✓';
    position: absolute;
    left: -20px;
    color: var(--cl-secondary);
    font-weight: 700;
}

.changelog-benefit-society .changelog-benefit-list li::before {
    color: var(--cl-accent);
}

.changelog-benefit-list li:last-child {
    margin-bottom: 0;
}

/* ============================================
   Guide Section
   ============================================ */
.changelog-guide {
    margin-top: 20px;
    background: linear-gradient(135deg, var(--cl-bg-cream) 0%, #fff 100%);
    border-radius: var(--cl-radius-sm);
    padding: 20px;
    border: 1px solid var(--cl-border);
}

.changelog-guide-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--cl-text-dark);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.changelog-guide-title .guide-icon {
    font-size: 18px;
}

.changelog-guide-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.changelog-guide-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.changelog-guide-step .step-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--cl-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.changelog-guide-step .step-content {
    flex: 1;
}

.changelog-guide-step .step-content strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--cl-text-dark);
    margin-bottom: 4px;
}

.changelog-guide-step .step-content p {
    font-size: 13px;
    color: var(--cl-text-body);
    line-height: 1.5;
    margin: 0;
}

.changelog-guide-step .step-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cl-primary);
    text-decoration: none;
    transition: var(--cl-transition);
}

.changelog-guide-step .step-link:hover {
    color: var(--cl-primary-hover);
    text-decoration: underline;
}

/* Card Footer */
.changelog-card-footer {
    display: flex;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--cl-border);
}

.changelog-reaction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cl-text-muted);
    background: transparent;
    border: 2px solid var(--cl-border);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--cl-transition);
    font-family: 'Fira Sans', sans-serif;
}

.changelog-reaction:hover {
    border-color: var(--cl-primary);
    color: var(--cl-primary);
    background: var(--cl-primary-light);
}

.changelog-reaction.reacted {
    background: var(--cl-primary);
    border-color: var(--cl-primary);
    color: white;
}

.changelog-reaction.pop {
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.reaction-icon {
    font-size: 18px;
    transition: var(--cl-transition);
}

.changelog-reaction:hover .reaction-icon,
.changelog-reaction.reacted .reaction-icon {
    transform: scale(1.2);
}

/* Reaction Count Badge */
.reaction-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.changelog-reaction.reacted .reaction-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Loading State */
.changelog-reaction.loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: wait;
}

.changelog-reaction.loading .reaction-icon {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Toast Notification */
.changelog-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    font-family: 'Fira Sans', sans-serif;
}

.changelog-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   Empty State
   ============================================ */
.changelog-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--cl-bg-white);
    border-radius: var(--cl-radius);
    box-shadow: var(--cl-shadow);
}

.changelog-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.changelog-empty h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--cl-text-dark);
    margin: 0 0 12px;
}

.changelog-empty p {
    font-size: 16px;
    color: var(--cl-text-muted);
    margin: 0;
}

/* ============================================
   Back to Top
   ============================================ */
.changelog-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--cl-transition);
    z-index: 100;
}

.changelog-back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.changelog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--cl-secondary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(26, 99, 85, 0.3);
    transition: var(--cl-transition);
    font-family: 'Fira Sans', sans-serif;
}

.changelog-back-btn:hover {
    background: #0d3d33;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 99, 85, 0.4);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .changelog-hero {
        padding: 60px 0 50px;
    }

    .changelog-hero-title {
        font-size: 36px;
    }

    .changelog-hero-desc {
        font-size: 16px;
    }

    .changelog-content {
        padding: 30px 0 60px;
        margin-top: -20px;
    }

    .changelog-filters {
        padding: 12px 16px;
        gap: 8px;
    }

    .changelog-filter-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .filter-label {
        display: none;
    }

    .changelog-card {
        padding: 20px;
    }

    .changelog-title {
        font-size: 20px;
    }

    .changelog-desc {
        font-size: 14px;
    }

    .changelog-back-top {
        bottom: 20px;
        right: 20px;
    }

    .changelog-back-btn {
        padding: 12px 18px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .changelog-hero-title {
        font-size: 30px;
    }

    .changelog-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .changelog-filter-btn {
        justify-content: center;
    }

    .filter-label {
        display: inline;
    }

    .changelog-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
