/**
 * Portfolio Showcase Widget Styles
 * Consistent styling for both Preview and Archive widgets
 */

/* ===================
   PREVIEW WIDGET (Homepage)
   =================== */
.psw-portfolio-section {
    width: 100%;
    background-color: #1A1A1A;
    padding: 60px 30px;
}

.psw-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.psw-section-title {
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.psw-section-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

/* Portfolio Slider */
.psw-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.psw-slider-container {
    flex: 1;
    overflow: hidden;
}

.psw-slider {
    display: flex;
    transition: transform 0.4s ease;
}

.psw-slide {
    flex-shrink: 0;
}

.psw-portfolio-card {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: default;
}

.psw-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.psw-portfolio-card:hover .psw-card-image {
    transform: scale(1.05);
}

.psw-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.psw-card-content {
    width: 100%;
}

.psw-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #FF6B35;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.psw-card-desc {
    font-size: 13px;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}

/* Navigation Buttons */
.psw-nav-btn {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: #FF6B35;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.psw-nav-btn svg {
    width: 22px;
    height: 22px;
}

.psw-nav-btn:hover {
    background-color: #E55A2B;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.psw-nav-btn:active {
    transform: scale(0.95);
}

/* Button */
.psw-button-wrapper {
    text-align: center;
}

.psw-button {
    display: inline-block;
    background-color: #FF6B35;
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.psw-button:hover {
    background-color: #E55A2B;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Legacy Grid Support (for Archive) */
.psw-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* ===================
   ARCHIVE WIDGET (Full Page)
   =================== */
.psw-archive-section {
    width: 100%;
    background-color: #FFFFFF;
    padding: 40px 0;
}

.psw-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.psw-archive-title {
    font-size: 32px;
    font-weight: 700;
    color: #1A202C;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.psw-archive-desc {
    font-size: 15px;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

/* Archive Grid */
.psw-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.psw-archive-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.psw-archive-card:hover {
    border-color: #FF6B35;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
    transform: translateY(-4px);
}

.psw-archive-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #F7FAFC;
}

.psw-archive-card-image.psw-no-image {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 24 24' fill='none' stroke='%23CBD5E0' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'%3E%3C/circle%3E%3Cpolyline points='21 15 16 10 5 21'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60px;
}

.psw-archive-card-content {
    padding: 15px;
}

.psw-archive-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1A202C;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.psw-archive-card-desc {
    font-size: 13px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* ===================
   RESPONSIVE - TABLET
   =================== */
@media (max-width: 1024px) {
    .psw-portfolio-section {
        padding: 50px 20px;
    }

    .psw-section-title {
        font-size: 28px;
    }

    .psw-section-desc {
        font-size: 14px;
    }

    .psw-slider-wrapper {
        gap: 10px;
    }

    .psw-nav-btn {
        width: 44px;
        height: 44px;
    }

    .psw-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .psw-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .psw-portfolio-card {
        height: 250px;
    }

    .psw-card-title {
        font-size: 16px;
    }

    .psw-card-desc {
        font-size: 12px;
    }

    .psw-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .psw-archive-title {
        font-size: 26px;
    }
}

/* ===================
   RESPONSIVE - MOBILE
   =================== */
@media (max-width: 767px) {
    .psw-portfolio-section {
        padding: 40px 15px;
    }

    .psw-section-header {
        margin-bottom: 25px;
    }

    .psw-section-title {
        font-size: 24px;
    }

    .psw-section-desc {
        font-size: 13px;
    }

    .psw-slider-wrapper {
        gap: 8px;
        margin-bottom: 30px;
    }

    .psw-nav-btn {
        width: 40px;
        height: 40px;
    }

    .psw-nav-btn svg {
        width: 16px;
        height: 16px;
    }

    .psw-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 30px;
    }

    .psw-portfolio-card {
        height: 220px;
    }

    .psw-card-overlay {
        padding: 15px;
    }

    .psw-card-title {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .psw-card-desc {
        font-size: 11px;
    }

    .psw-button {
        padding: 10px 25px;
        font-size: 13px;
    }

    .psw-archive-section {
        padding: 30px 15px;
    }

    .psw-archive-header {
        margin-bottom: 25px;
    }

    .psw-archive-title {
        font-size: 22px;
    }

    .psw-archive-desc {
        font-size: 13px;
    }

    .psw-archive-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .psw-archive-card-image {
        height: 180px;
    }

    .psw-archive-card-content {
        padding: 12px;
    }

    .psw-archive-card-title {
        font-size: 14px;
    }

    .psw-archive-card-desc {
        font-size: 12px;
    }
}