/* Demo Pages Styles */

/* Demo Hero Section */
.demo-hero {
    padding: 120px 0 80px;
    background: var(--primary-gradient);
    color: white;
}

    .demo-hero h1 {
        font-size: 3rem;
        font-weight: 800;
        margin-bottom: 1.5rem;
    }

    .demo-hero .lead {
        font-size: 1.3rem;
        opacity: 0.9;
        max-width: 700px;
        margin: 0 auto;
    }

/* Filter Buttons */
.template-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .filter-btn:hover,
    .filter-btn.active {
        background: white;
        color: var(--primary-blue);
        border-color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    }

/* Templates Gallery */
.templates-gallery {
    padding: 80px 0;
    background: var(--bg-light);
}

.template-item {
    transition: all 0.3s ease;
}

.template-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

    .template-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    }

/* Template Preview */
.template-preview {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.template-mockup {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.template-card:hover .template-mockup {
    transform: scale(0.95);
}

/* Mockup Components */
.mockup-header {
    background: #e9ecef;
    height: 30px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.mockup-nav {
    display: flex;
    gap: 6px;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc3545;
}

    .nav-dot:nth-child(2) {
        background: #ffc107;
    }

    .nav-dot:nth-child(3) {
        background: #28a745;
    }

.mockup-content {
    padding: 15px;
    height: calc(100% - 30px);
}

/* Hero Section Mini */
.hero-section-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    height: 120px;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-title {
    height: 16px;
    background: #2c3e50;
    border-radius: 4px;
    width: 80%;
}

.hero-subtitle {
    height: 12px;
    background: #6c757d;
    border-radius: 4px;
    width: 60%;
}

.hero-button {
    height: 32px;
    background: var(--primary-gradient);
    border-radius: 16px;
    width: 120px;
    margin-top: 5px;
}

    .hero-button.primary {
        background: var(--primary-gradient);
    }

    .hero-button.secondary {
        background: transparent;
        border: 2px solid var(--primary-cyan);
        height: 28px;
    }

.hero-buttons {
    display: flex;
    gap: 8px;
}

.hero-image {
    flex: 1;
    height: 100px;
    background: #e9ecef;
    border-radius: 8px;
    position: relative;
}

/* Specific Template Styles */

/* Fashion Template */
.ecommerce-fashion .hero-section-mini {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-radius: 8px;
    padding: 15px;
    color: white;
}

.fashion-product {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="30" y="20" width="40" height="60" fill="%23ffffff30" rx="5"/></svg>') center/contain no-repeat;
}

/* SaaS Template */
.saas-dashboard .hero-section-mini {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    padding: 15px;
    color: white;
}

.dashboard-mini {
    display: flex;
    background: white;
    border-radius: 4px;
    height: 80px;
    overflow: hidden;
}

.dashboard-sidebar-mini {
    width: 25%;
    background: #f8f9fa;
}

.dashboard-main-mini {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chart-mini {
    height: 30px;
    background: linear-gradient(90deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
    border-radius: 2px;
}

.stats-mini {
    display: flex;
    gap: 4px;
}

.stat-card-mini {
    flex: 1;
    height: 25px;
    background: #e9ecef;
    border-radius: 2px;
}

/* Mobile App Template */
.mobile-app .hero-section-mini {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    padding: 15px;
    color: white;
}

.phone-mockup {
    width: 60px;
    height: 90px;
    background: #2c3e50;
    border-radius: 12px;
    padding: 8px;
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 8px;
    padding: 4px;
}

.app-header {
    height: 12px;
    background: var(--primary-gradient);
    border-radius: 2px;
    margin-bottom: 4px;
}

.app-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.app-card {
    height: 15px;
    background: #f8f9fa;
    border-radius: 2px;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-store-btn,
.play-store-btn {
    height: 24px;
    background: #2c3e50;
    border-radius: 4px;
    width: 100px;
}

/* Restaurant Template */
.restaurant .hero-section-mini {
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="20" fill="%23ff6b6b"/></svg>');
    background-size: cover;
    border-radius: 8px;
    padding: 15px;
    color: white;
    position: relative;
}

.hero-text.centered {
    text-align: center;
    width: 100%;
}

.menu-section-mini {
    display: flex;
    gap: 8px;
}

.menu-item {
    flex: 1;
    height: 40px;
    background: #fff3cd;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
}

/* Portfolio Template */
.portfolio .hero-section-mini {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    padding: 15px;
    color: white;
}

.portfolio-image {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="10" y="20" width="80" height="60" fill="%23ffffff30" rx="4"/><circle cx="30" cy="40" r="8" fill="%23ffffff50"/></svg>') center/contain no-repeat;
}

.portfolio-grid-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.portfolio-item {
    height: 40px;
    background: #e9ecef;
    border-radius: 4px;
}

/* Fitness Template */
.fitness .hero-section-mini {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    border-radius: 8px;
    padding: 15px;
    color: white;
}

.fitness-trainer {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="30" r="15" fill="%23ffffff30"/><rect x="35" y="45" width="30" height="40" fill="%23ffffff30" rx="5"/></svg>') center/contain no-repeat;
}

.feature-item.fitness-feature {
    background: rgba(255, 255, 255, 0.9);
    border-left: 3px solid #ff6b6b;
}

/* Features Grid Mini */
.features-grid-mini {
    display: flex;
    gap: 8px;
}

.feature-item {
    flex: 1;
    height: 40px;
    background: #e9ecef;
    border-radius: 4px;
    border-left: 3px solid var(--primary-cyan);
}

/* Template Overlay */
.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 195, 226, 0.95), rgba(41, 107, 180, 0.95));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.overlay-content {
    text-align: center;
    padding: 20px;
}

    .overlay-content h5 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .overlay-content p {
        margin-bottom: 1.5rem;
        opacity: 0.9;
    }

.template-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Template Info */
.template-info {
    padding: 25px;
}

    .template-info h5 {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        color: var(--text-dark);
    }

.template-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Template Features Section */
.template-features {
    padding: 80px 0;
    background: white;
}

.feature-item-demo {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon-demo {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.feature-item-demo:hover .feature-icon-demo {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(1, 195, 226, 0.3);
}

.feature-item-demo h5 {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

/* CTA Demo Section */
.cta-demo {
    padding: 80px 0;
    background: var(--primary-gradient);
    color: white;
    text-align: center;
}

    .cta-demo h2 {
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 1rem;
    }

    .cta-demo .lead {
        opacity: 0.9;
        margin-bottom: 2rem;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .demo-hero h1 {
        font-size: 2.2rem;
    }

    .demo-hero .lead {
        font-size: 1.1rem;
    }

    .template-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 200px;
    }

    .hero-section-mini {
        flex-direction: column;
        height: auto;
        gap: 10px;
    }

    .hero-text {
        width: 100%;
    }

    .hero-image {
        width: 100%;
        height: 60px;
    }

    .template-actions {
        flex-direction: column;
    }

        .template-actions .btn {
            width: 100%;
        }

    .cta-demo h2 {
        font-size: 2rem;
    }

    .feature-item-demo {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .demo-hero {
        padding: 100px 0 60px;
    }

    .templates-gallery {
        padding: 60px 0;
    }

    .template-features {
        padding: 60px 0;
    }

    .cta-demo {
        padding: 60px 0;
    }

    .template-preview {
        height: 250px;
    }

    .mockup-content {
        padding: 10px;
    }

    .hero-section-mini {
        padding: 10px;
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
.template-card.loading {
    opacity: 0.7;
}

    .template-card.loading .template-mockup {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
    }

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}
