/* ===================================
   SHOWCASE CUSTOM STYLES
   أنماط خاصة بصفحة العرض
   =================================== */



/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    max-width: 1200px;
    text-align: center;
    z-index: 2;
}

.hero-section .badge {
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    margin: 1.5rem 0;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
}

.hero-section .btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stat-value {
    font-size: 3rem;
    font-weight: bold;
}

.hero-stat-value.gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-value.gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-value.gradient-3 {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 0;
}

.section.bg-secondary {
    background: var(--bg-secondary);
}

.section.bg-primary {
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== COMPONENT CARDS ===== */
.component-category-card {
    padding: 2.5rem;
}

.component-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.component-icon i {
    font-size: 1.75rem;
    color: white;
}

.component-icon.icon-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.component-icon.icon-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
}

.component-icon.icon-success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    box-shadow: 0 10px 30px rgba(132, 250, 176, 0.3);
}

.component-icon.icon-sunset {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 10px 30px rgba(250, 112, 154, 0.3);
}

.component-icon.icon-cosmic {
    background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%);
    box-shadow: 0 10px 30px rgba(142, 45, 226, 0.3);
}

.component-icon.icon-fire {
    background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.3);
}

.component-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.component-card-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ===== DEMO SECTIONS ===== */
.demo-section {
    display: none;
    padding: 4rem 0;
    background: var(--bg-primary);
}

.demo-section.active {
    display: block;
}

.demo-section .container {
    max-width: 1200px;
}

.back-button {
    margin-bottom: 2rem;
}

.demo-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.demo-card {
    padding: 3rem;
    margin-bottom: 2rem;
}

.demo-card-title {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.button-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.button-showcase.align-center {
    align-items: center;
}

/* ===== GRADIENT SHOWCASE ===== */
.gradient-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gradient-box {
    height: 120px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: var(--shadow-lg);
}

/* ===== DASHBOARD EXAMPLE ===== */
.dashboard-example {
    padding: 3rem;
    margin-bottom: 3rem;
}

.dashboard-example-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.chart-placeholder {
    height: 250px;
    background: var(--bg-tertiary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.chart-placeholder i {
    font-size: 3rem;
    opacity: 0.3;
}

.recent-orders {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
}

.order-image {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.order-info {
    flex: 1;
}

.order-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.order-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.order-price {
    font-weight: bold;
    color: var(--success);
}

/* ===== FOOTER CUSTOM ===== */
.footer .container {
    max-width: 1400px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 4rem 0;
}

.footer-brand {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-section-title {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-medium);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
}

.footer-heart {
    color: var(--error);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

/* ===== ALERT STYLES ===== */
.alert-container {
    display: grid;
    gap: 1.5rem;
}

/* ===== AVATAR GROUP ===== */
.avatar-showcase {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ===== BADGE SHOWCASE ===== */
.badge-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ===== PROGRESS SHOWCASE ===== */
.progress-showcase {
    display: grid;
    gap: 1rem;
}

/* ===== LOADING SHOWCASE ===== */
.loading-showcase {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* ===== ANIMATION SHOWCASE ===== */
.animation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.animation-box {
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    color: white;
    font-weight: bold;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .navbar .container {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero-section {
        min-height: 70vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .component-category-card {
        padding: 2rem;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .demo-card {
        padding: 2rem;
    }

    .button-showcase {
        flex-direction: column;
    }

    .gradient-showcase-grid {
        grid-template-columns: 1fr;
    }

    .animation-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .back-to-top {
        bottom: 1rem;
        left: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .navbar h2 {
        font-size: 1.2rem;
    }

    .hero-section .badge {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .component-icon {
        width: 50px;
        height: 50px;
    }

    .component-icon i {
        font-size: 1.5rem;
    }

    .component-card-title {
        font-size: 1.25rem;
    }

    .demo-title {
        font-size: 1.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] .back-to-top {
    left: auto;
    right: 2rem;
}

[dir="rtl"] .order-item {
    flex-direction: row-reverse;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

.max-w-1200 {
    max-width: 1200px;
}

.max-w-1400 {
    max-width: 1400px;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 2rem;
}

/* ===== CUSTOM GRID LAYOUTS ===== */
.grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-2-1 {
        grid-template-columns: 1fr;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .back-to-top,
    .hero-section .btn-group {
        display: none;
    }

    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
}