/**
 * WebCreator Next-Gen CMS
 * Frontend Styles
 */

/* ===== Variables ===== */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Base Styles ===== */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-4 {
    font-weight: 800;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* ===== Navigation ===== */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 40px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* ===== Hero Section ===== */
.hero-banner {
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-banner .container {
    z-index: 2;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
}

.page-header h1 {
    color: var(--dark-color);
}

/* ===== Content Styles ===== */
.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-body p {
    margin-bottom: 1.5rem;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.content-body ul, .content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

.content-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--secondary-color);
}

/* ===== Cards ===== */
.card {
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

/* ===== Feature Cards ===== */
.feature-card {
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 50%;
    color: white;
}

.feature-icon i {
    font-size: 2rem;
    color: white !important;
}

/* ===== Testimonials ===== */
.testimonial-card {
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* ===== Gallery ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== News Cards ===== */
.news-card {
    overflow: hidden;
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== CTA Banner ===== */
.cta-banner {
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

/* ===== Buttons ===== */
.btn {
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #003d7a);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

/* ===== Forms ===== */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

footer a {
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

/* ===== Accordion ===== */
.accordion-button:not(.collapsed) {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* ===== Pagination ===== */
.pagination .page-link {
    border: none;
    margin: 0 2px;
    border-radius: 0.5rem;
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }

    .hero-banner {
        min-height: 400px !important;
    }

    .hero-banner h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-banner {
        min-height: 350px !important;
    }

    .hero-banner h1 {
        font-size: 2rem;
    }

    .feature-card {
        margin-bottom: 1rem;
    }

    .content-body {
        font-size: 1rem;
    }
}

/* ===== Utilities ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
}

.shadow-lg-hover:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}
