/* ==========================================================================
   PORTFOLIO ARCHIVE PAGE STYLES
   Main Theme Color: #0b0b0b | Accent: #FF6200
   ========================================================================== */

/* Page Level Reset & Setup */
body.post-type-archive-portfolio {
    background-color: #0b0b0b !important;
    color: #ffffff !important;
}

.portfolio-archive-wrapper {
    background-color: #0b0b0b;
    width: 100%;
    padding: 40px 0 80px 0;
    position: relative;
}

.portfolio-archive-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   1. HERO HEADER SECTION
   ========================================================================== */
.portfolio-archive-header {
    background-color: #141414;
    padding: 35px 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid #222;
    text-align: left;
}

.portfolio-archive-header h1 {
    font-size: 38px;
    color: #ffffff;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.portfolio-breadcrumbs, .portfolio-breadcrumbs a {
    color: #888888;
    text-decoration: none;
    font-size: 14px;
}

.portfolio-breadcrumbs a:hover {
    color: #FF6200;
}

.portfolio-breadcrumbs span {
    color: #FF6200;
}

/* ==========================================================================
   2. CATEGORY FILTER NAVIGATION
   ========================================================================== */
.portfolio-filter-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    padding: 10px 0;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #888888;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: #FF6200;
}

.filter-sep {
    color: #333333;
    font-size: 16px;
    user-select: none;
}

/* ==========================================================================
   3. PORTFOLIO GRID & CARDS
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    transition: all 0.4s ease;
}

.portfolio-card-inner {
    background: #141414;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #222222;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.portfolio-card-inner:hover {
    border-color: #FF6200;
    transform: translateY(-5px);
}

/* 🖼️ CARD IMAGE CONTAINER & CENTER-OUT SHINE EFFECT */
.card-image-box {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    background-color: #0b0b0b;
}

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

.portfolio-card-inner:hover .card-image-box img {
    transform: scale(1.06);
}

/* Center-Out Shine Animation */
.card-image-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.portfolio-card-inner:hover .card-image-box::before {
    animation: centerShine 0.7s ease-out forwards;
}

@keyframes centerShine {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.6;
    }
    100% {
        width: 180%;
        height: 180%;
        opacity: 0;
    }
}

/* CARD CONTENT & BOTTOM ARROW */
.card-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

.card-info h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
}

.card-info h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-info h3 a:hover {
    color: #FF6200;
}

.card-info p {
    color: #888888;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* 🎯 GUARANTEED ARROW BUTTON STYLES */
.card-arrow-btn {
    width: 42px !important;
    height: 42px !important;
    background-color: #222222 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    box-sizing: border-box !important;
}

.card-arrow-btn svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    transition: stroke 0.3s ease !important;
}

.portfolio-card-inner:hover .card-arrow-btn {
    background-color: #FF6200 !important;
    transform: scale(1.08) !important;
}

/* ==========================================================================
   4. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 991px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-archive-header {
        padding: 25px 20px;
    }
    .portfolio-archive-header h1 {
        font-size: 28px;
    }
}