@extends('layouts.app')

@section('styles')
<style>
    .skill-card-bg {
        background: linear-gradient(135deg, #e34f26, #f76342);
        position: relative;
        overflow: hidden;
    }
    .skill-card-bg::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
        transform: rotate(30deg);
    }
    .detail-icon {
        width: 120px;
        height: 120px;
        background: white;
        border-radius: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 2;
        position: relative;
    }
    .stat-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
    }
</style>
@endsection

@section('content')
<div class="d-flex justify-content-between align-items-center mb-4">
    <h4 class="fw-bold mb-0 text-gray-800">
        <i class="bi bi-eye text-primary me-2"></i>Skill Details
    </h4>
    <div class="d-flex gap-2">
        <a href="{{ url('/skills/edit') }}" class="btn btn-warning shadow-sm rounded-pill px-4 fw-bold text-dark">
            <i class="bi bi-pencil me-1"></i> Edit Skill
        </a>
        <a href="{{ url('/skills') }}" class="btn btn-light shadow-sm rounded-pill px-4 fw-medium text-secondary hover-primary">
            <i class="bi bi-arrow-left me-1"></i> Back to Skills
        </a>
    </div>
</div>

<div class="row g-4">
    <!-- Main Info Card -->
    <div class="col-lg-12">
        <div class="card border-0 shadow-sm rounded-4 skill-card-bg text-white">
            <div class="card-body p-5">
                <div class="row align-items-center">
                    <div class="col-md-auto mb-4 mb-md-0 text-center text-md-start">
                        <div class="detail-icon mx-auto mx-md-0">
                            <i class="bi bi-filetype-html" style="font-size: 4rem; background: -webkit-linear-gradient(135deg, #e34f26, #f76342); -webkit-background-clip: text; -webkit-text-fill-color: transparent;"></i>
                        </div>
                    </div>
                    <div class="col-md text-center text-md-start ps-md-4">
                        <span class="badge bg-white text-dark rounded-pill px-3 py-2 mb-3 fw-bold shadow-sm" style="color: #e34f26 !important;"><i class="bi bi-tag-fill me-1"></i>Frontend</span>
                        <h1 class="fw-bold display-5 mb-2">HTML5</h1>
                        <p class="lead mb-0 opacity-75"><i class="bi bi-code-slash me-2"></i>bi-filetype-html</p>
                    </div>
                    <div class="col-md-auto mt-4 mt-md-0 text-center text-md-end">
                        <div class="bg-white bg-opacity-25 rounded-4 p-4 backdrop-blur shadow-sm">
                            <h6 class="text-uppercase tracking-wider fw-bold mb-1 opacity-75">Status</h6>
                            <h3 class="fw-bold mb-0"><i class="bi bi-check-circle-fill text-white me-2"></i>Active</h3>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Details Grid -->
    <div class="col-md-4">
        <div class="card border-0 shadow-sm rounded-4 stat-card h-100">
            <div class="card-body p-4">
                <div class="d-flex align-items-center mb-3">
                    <div class="rounded-circle bg-primary bg-opacity-10 text-primary d-flex align-items-center justify-content-center me-3" style="width: 48px; height: 48px;">
                        <i class="bi bi-palette-fill fs-5"></i>
                    </div>
                    <h5 class="fw-bold mb-0 text-secondary">Colors</h5>
                </div>
                <div class="d-flex align-items-center bg-light p-3 rounded-3 mt-4">
                    <div class="rounded-circle shadow-sm me-3 border border-3 border-white" style="width: 40px; height: 40px; background-color: #e34f26;"></div>
                    <div>
                        <small class="text-muted d-block fw-semibold text-uppercase">Primary</small>
                        <span class="fw-bold">#e34f26</span>
                    </div>
                </div>
                <div class="d-flex align-items-center bg-light p-3 rounded-3 mt-3">
                    <div class="rounded-circle shadow-sm me-3 border border-3 border-white" style="width: 40px; height: 40px; background-color: #f76342;"></div>
                    <div>
                        <small class="text-muted d-block fw-semibold text-uppercase">Alternate</small>
                        <span class="fw-bold">#f76342</span>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="col-md-4">
        <div class="card border-0 shadow-sm rounded-4 stat-card h-100">
            <div class="card-body p-4">
                <div class="d-flex align-items-center mb-3">
                    <div class="rounded-circle bg-info bg-opacity-10 text-info d-flex align-items-center justify-content-center me-3" style="width: 48px; height: 48px;">
                        <i class="bi bi-sort-numeric-down fs-5"></i>
                    </div>
                    <h5 class="fw-bold mb-0 text-secondary">Display Info</h5>
                </div>
                <div class="bg-light p-4 rounded-4 mt-4 text-center">
                    <h6 class="text-muted text-uppercase fw-bold mb-2">Sort Order</h6>
                    <h1 class="display-4 fw-bold text-dark mb-0">1</h1>
                </div>
            </div>
        </div>
    </div>

    <div class="col-md-4">
        <div class="card border-0 shadow-sm rounded-4 stat-card h-100">
            <div class="card-body p-4">
                <div class="d-flex align-items-center mb-3">
                    <div class="rounded-circle bg-success bg-opacity-10 text-success d-flex align-items-center justify-content-center me-3" style="width: 48px; height: 48px;">
                        <i class="bi bi-calendar-check fs-5"></i>
                    </div>
                    <h5 class="fw-bold mb-0 text-secondary">Timestamps</h5>
                </div>
                <ul class="list-group list-group-flush mt-4">
                    <li class="list-group-item bg-transparent px-0 py-3 border-light d-flex justify-content-between align-items-center">
                        <span class="text-muted fw-medium"><i class="bi bi-clock-history me-2"></i>Created At</span>
                        <span class="fw-bold">Oct 24, 2023</span>
                    </li>
                    <li class="list-group-item bg-transparent px-0 py-3 border-light d-flex justify-content-between align-items-center">
                        <span class="text-muted fw-medium"><i class="bi bi-arrow-clockwise me-2"></i>Updated At</span>
                        <span class="fw-bold">Nov 02, 2023</span>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
@endsection
