/* ============================================
   DEMOS PAGE STYLES
   ============================================ */

/* Override section padding for demos page */
.demos-section.section-padding {
    padding-top: 40px;
    padding-bottom: 60px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend-badge.standard {
    background: #e3f2fd;
    color: #1565c0;
}

.legend-badge.wordpress {
    background: #fce4ec;
    color: #c2185b;
}

.legend-badge.cms {
    background: #e8f5e9;
    color: #2e7d32;
}

.legend-desc {
    font-size: 14px;
    color: #666;
}

/* Demo Categories */
.demo-category {
    margin-bottom: 50px;
}

.demo-category-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.demo-category-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    max-width: 700px;
}

/* Demos Grid */
.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Demo Card */
.demo-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.demo-card.coming-soon {
    opacity: 0.7;
}

.demo-card.coming-soon:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Demo Image */
.demo-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.demo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.demo-card:hover .demo-image img {
    transform: scale(1.05);
}

.demo-image.placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
}

.placeholder-content span {
    font-size: 18px;
    font-weight: 600;
    color: #999;
}

.demo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-badge.standard {
    background: #1565c0;
    color: #fff;
}

.demo-badge.wordpress {
    background: #c2185b;
    color: #fff;
}

.demo-badge.cms {
    background: #2e7d32;
    color: #fff;
}

/* Demo Content */
.demo-content {
    padding: 25px;
}

.demo-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.demo-description {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

/* Tech Tags */
.demo-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
}

/* Demo Links */
.demo-links {
    display: flex;
    gap: 12px;
}

.demo-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.demo-btn.primary {
    background: #1a1a1a;
    color: #fff;
}

.demo-btn.primary:hover {
    background: #333;
    transform: translateY(-2px);
}

.demo-btn.secondary {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.demo-btn.secondary:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Footer Quick Links */
.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .demo-legend {
        flex-direction: column;
        gap: 15px;
    }

    .demos-grid {
        grid-template-columns: 1fr;
    }

    .demo-category-title {
        font-size: 24px;
    }

    .demo-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .demo-content {
        padding: 20px;
    }

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

    .demo-links {
        flex-direction: column;
    }

    .demo-btn {
        text-align: center;
    }
}
