@extends('layouts.master')

@section('header')
	@include('common.header')
@stop

@section('content')
<style>
body {
    background-color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.changelog-wrapper {
    background-color: #ffffff;
    min-height: 100vh;
    padding: 40px 0;
}

.changelog-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    background-color: #ffffff;
}

.page-header {
    text-align: left;
    margin-bottom: 50px;
    padding: 0;
    background: none;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #2c3e50;
    line-height: 1.2;
}

.page-subtitle {
    color: #7f8c8d;
    font-size: 20px;
    margin: 0;
    font-weight: 400;
}

.section-block {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    margin-bottom: 35px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.section-block:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.section-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 25px 30px;
    margin: 0;
    border: none;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.section-icon {
    font-size: 24px;
    margin-right: 12px;
}

.section-content {
    padding: 30px;
    background: #ffffff;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    position: relative;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: #e3f2fd;
    border-left-color: #2196f3;
    transform: translateX(8px);
}

.feature-item:before {
    content: "✓";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: #27ae60;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, #e0e0e0, #f5f5f5, #e0e0e0);
    margin: 40px 0;
    border: none;
}

@media (max-width: 768px) {
    .changelog-container {
        padding: 0 20px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 18px;
    }
    
    .section-content {
        padding: 25px 20px;
    }
    
    .section-header {
        padding: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .changelog-container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .feature-item {
        padding: 12px 15px;
        font-size: 15px;
    }
}
</style>

<div class="changelog-wrapper">
    <div class="changelog-container">
        <div class="page-header">
            <h1 class="page-title">
                🚀 Change Log Overview
            </h1>
            <p class="page-subtitle">
                Complete development history since Laravel 5.1 migration • Current Version: Laravel 12
            </p>
        </div>

        @foreach ($changelog as $section)
            <div class="section-block">
                <div class="section-header">
                    <h2 class="section-title">
                        <span class="section-icon">{{ $section['icon'] }}</span>
                        {{ str_replace($section['icon'] . ' ', '', $section['title']) }}
                    </h2>
                </div>
                
                <div class="section-content">
                    <ul class="feature-list">
                        @foreach ($section['features'] as $feature)
                            <li class="feature-item">{!! $feature !!}</li>
                        @endforeach
                    </ul>
                </div>
            </div>
            
            @if (!$loop->last)
                <hr class="divider">
            @endif
        @endforeach
    </div>
</div>

@stop