/* ============================================
   CBK Gelderland Theme - Purple & White Palette
   ============================================ */

:root {
    --cbk-purple-dark: #5b21b6;
    --cbk-purple: #7c3aed;
    --cbk-purple-light: #a78bfa;
    --cbk-purple-pale: #ede9fe;
    --cbk-white: #ffffff;
    --cbk-gray-light: #f8f9fa;
    --cbk-gray: #6b7280;
    --cbk-dark: #1f2937;
    --cbk-accent: #ec4899;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* ============================================
   Global Styles
   ============================================ */

body {
    font-family: var(--font-body);
    color: var(--cbk-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

/* ============================================
   Navigation & Header
   ============================================ */

.navbar {
    background: linear-gradient(135deg, var(--cbk-purple-dark) 0%, var(--cbk-purple) 100%) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.brand-icon {
    font-size: 1.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.brand-text {
    background: linear-gradient(to right, var(--cbk-white), var(--cbk-purple-pale));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cbk-white);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--cbk-purple-pale) !important;
    transform: translateY(-2px);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--cbk-purple-dark) 0%, var(--cbk-purple) 50%, var(--cbk-accent) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1561214115-f2f134cc4912?w=1920&q=80') center/cover;
    opacity: 0.15;
    z-index: 0;
    animation: kenburns 30s ease infinite;
}

@keyframes kenburns {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.9) 0%, rgba(124, 58, 237, 0.8) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 1s ease;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease 0.4s both;
}

.min-vh-50 {
    min-height: 50vh;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-light:hover {
    background: var(--cbk-purple-pale);
    color: var(--cbk-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.btn-outline-light:hover {
    background: var(--cbk-white);
    color: var(--cbk-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* ============================================
   Cards
   ============================================ */

.art-card, .blog-card, .related-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: var(--cbk-white);
}

.art-card:hover, .blog-card:hover, .related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2) !important;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.card-img-wrapper img {
    transition: transform 0.6s ease;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.art-card:hover .card-img-wrapper img,
.blog-card:hover .card-img-wrapper img,
.related-card:hover .card-img-wrapper img {
    transform: scale(1.1) rotate(2deg);
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(124, 58, 237, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.art-card:hover .card-img-wrapper::after,
.blog-card:hover .card-img-wrapper::after,
.related-card:hover .card-img-wrapper::after {
    opacity: 1;
}

.card-body {
    padding: 1.5rem;
}

.art-card-title, .blog-card-title, .related-card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--cbk-dark);
    transition: color 0.3s ease;
}

.art-card:hover .art-card-title a,
.blog-card:hover .blog-card-title a,
.related-card:hover .related-card-title a {
    color: var(--cbk-purple) !important;
}

.read-more-link {
    color: var(--cbk-purple);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.art-card:hover .read-more-link {
    transform: translateX(5px);
    display: inline-block;
}

.blog-date-badge {
    top: 1rem;
    right: 1rem;
    background: var(--cbk-white);
    color: var(--cbk-purple);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-meta {
    border-top: 1px solid var(--cbk-purple-pale) !important;
}

/* ============================================
   Page Headers
   ============================================ */

.page-header, .blog-header {
    background: linear-gradient(135deg, var(--cbk-purple-dark) 0%, var(--cbk-purple) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before, .blog-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.bg-gradient-purple {
    background: linear-gradient(135deg, var(--cbk-purple-dark) 0%, var(--cbk-purple) 100%);
}

/* ============================================
   Section Styles
   ============================================ */

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.title-accent {
    color: var(--cbk-purple);
    position: relative;
}

.title-accent::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--cbk-purple), var(--cbk-accent));
    border-radius: 2px;
}

.section-divider {
    border: none;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--cbk-purple), transparent);
    opacity: 0.3;
}

/* ============================================
   Article Single Page
   ============================================ */

.article-hero {
    height: 500px;
    overflow: hidden;
}

.article-hero-img {
    height: 100%;
    object-fit: cover;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(91, 33, 182, 0.6));
    z-index: 1;
}

.article-hero-content {
    bottom: 2rem;
    z-index: 2;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ============================================
   Markdown Body Styles
   ============================================ */

.markdown-body {
    font-family: var(--font-body);
    line-height: 1.8;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    font-family: var(--font-heading);
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--cbk-purple-dark);
}

.markdown-body h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--cbk-purple-pale);
    padding-bottom: 0.5rem;
}

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

.markdown-body a {
    color: var(--cbk-purple);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.markdown-body a:hover {
    color: var(--cbk-purple-dark);
    border-bottom-color: var(--cbk-purple);
}

.markdown-body img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.markdown-body blockquote {
    border-left: 4px solid var(--cbk-purple);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--cbk-gray);
    background: var(--cbk-purple-pale);
    padding: 1.5rem;
    border-radius: 8px;
}

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

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

/* ============================================
   Pagination
   ============================================ */

.pagination {
    justify-content: center;
    margin-top: 3rem;
}

.pagination .page-link {
    color: var(--cbk-purple);
    border: 2px solid var(--cbk-purple-pale);
    border-radius: 50px;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--cbk-purple);
    color: var(--cbk-white);
    border-color: var(--cbk-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.pagination .page-item.active .page-link {
    background: var(--cbk-purple);
    border-color: var(--cbk-purple);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 4px solid var(--cbk-purple);
    margin-top: 5rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--cbk-white);
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-family: var(--font-heading);
    color: var(--cbk-purple-light);
    font-size: 1.1rem;
    border-bottom: 2px solid var(--cbk-purple);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--cbk-purple-light) !important;
    transform: translateX(5px);
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--cbk-purple-light) !important;
    transform: translateY(-3px);
}

/* ============================================
   Badges
   ============================================ */

.badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

.bg-purple-light {
    background: var(--cbk-purple-pale) !important;
    color: var(--cbk-purple-dark) !important;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-primary {
    color: var(--cbk-purple) !important;
}

.bg-primary {
    background: var(--cbk-purple) !important;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .article-hero {
        height: 300px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .brand-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 50vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }

    .card-img-wrapper {
        height: 200px;
    }
}

/* ============================================
   Smooth Scrolling
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================
   Accessibility
   ============================================ */

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

a:focus, button:focus {
    outline: 3px solid var(--cbk-purple-light);
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .navbar, .footer, .hero-section {
        display: none;
    }

    .card {
        break-inside: avoid;
    }
}
