/* ============================================
   Kundcase / Portfolio Page Styles
   ============================================ */

/* Hero adjustments for portfolio */
.portfolio-hero {
    padding: 80px 0;
}

.portfolio-hero .hero-content-ultra {
    text-align: center;
}

/* Filter Section */
.portfolio-filter-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.portfolio-filter-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.tag-filter {
    padding: 8px 16px;
    background: #fff;
    color: #333;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.tag-filter:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.tag-filter.active {
    background: #d4af37;
    color: #fff;
    border-color: #d4af37;
}

/* Cases Grid Section */
.portfolio-grid-section {
    padding: 60px 0;
}

.portfolio-grid {
    gap: 30px;
}

/* Portfolio Card */
.portfolio-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.portfolio-card-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8f9fa;
}

.portfolio-card-content {
    padding: 20px 24px 24px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-card-industry {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    align-self: flex-start;
    color: #555;
}

.portfolio-card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #0a0e27;
}

.portfolio-card-excerpt {
    color: #666;
    margin-bottom: 16px;
    flex-grow: 1;
    line-height: 1.6;
}

.portfolio-card-tags {
    margin-bottom: 16px;
}

.tag-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-badge:hover {
    background: #c8e6c9;
    transform: translateY(-2px);
}

.portfolio-card-footer {
    margin-top: auto;
}

/* Empty State */
.portfolio-empty {
    text-align: center;
    padding: 60px 20px;
}

.portfolio-empty p {
    font-size: 1.2rem;
    color: #666;
}

/* CTA Section adjustment */
.portfolio-cta {
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-hero {
        padding: 60px 0;
    }

    .portfolio-filter-section {
        padding: 30px 0;
    }

    .portfolio-grid-section {
        padding: 40px 0;
    }

    .portfolio-card-title {
        font-size: 1.3rem;
    }
}

/* ===========================
   Dark Mode Overrides
   =========================== */

/* Portfolio Filter Section - Dark Mode */
html[data-theme="dark"] .portfolio-filter-section {
    background: var(--gray-50);
}

html[data-theme="dark"] .tag-filter {
    background: var(--gray-100);
    color: var(--gray-700);
    border-color: var(--gray-200);
}

html[data-theme="dark"] .tag-filter:hover {
    background: var(--gray-200);
}

html[data-theme="dark"] .tag-filter.active {
    background: var(--wf-gold);
    color: #1a1a1a;
    border-color: var(--wf-gold);
}

/* Portfolio Grid Section - Dark Mode */
html[data-theme="dark"] .portfolio-grid-section {
    background: var(--premium-white);
}

html[data-theme="dark"] .portfolio-card {
    background: var(--gray-50);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .portfolio-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .portfolio-card-title {
    color: var(--gray-800);
}

html[data-theme="dark"] .portfolio-card-description {
    color: var(--gray-500);
}

html[data-theme="dark"] .portfolio-card-image {
    background: #1a1a1a;
}

html[data-theme="dark"] .portfolio-card-excerpt {
    color: var(--gray-600);
}

html[data-theme="dark"] .tag-badge {
    background: rgba(77, 159, 255, 0.15);
    color: #6BB3FF;
}

/* System preference dark mode */
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .portfolio-filter-section {
        background: var(--gray-50);
    }

    html:not([data-theme="light"]) .tag-filter {
        background: var(--gray-100);
        color: var(--gray-700);
        border-color: var(--gray-200);
    }

    html:not([data-theme="light"]) .tag-filter:hover {
        background: var(--gray-200);
    }

    html:not([data-theme="light"]) .tag-filter.active {
        background: var(--wf-gold);
        color: #1a1a1a;
        border-color: var(--wf-gold);
    }

    html:not([data-theme="light"]) .portfolio-grid-section {
        background: var(--premium-white);
    }

    html:not([data-theme="light"]) .portfolio-card {
        background: var(--gray-50);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    html:not([data-theme="light"]) .portfolio-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    html:not([data-theme="light"]) .portfolio-card-title {
        color: var(--gray-800);
    }

    html:not([data-theme="light"]) .portfolio-card-description {
        color: var(--gray-500);
    }

    html:not([data-theme="light"]) .portfolio-card-image {
        background: #1a1a1a;
    }

    html:not([data-theme="light"]) .portfolio-card-excerpt {
        color: var(--gray-600);
    }

    html:not([data-theme="light"]) .tag-badge {
        background: rgba(77, 159, 255, 0.15);
        color: #6BB3FF;
    }
}
