/*
Theme Name: PlacementStore
Theme URI: https://placementstore.com
Author: PlacementStore Engineering Team
Author URI: https://placementstore.com
Description: High-performance, lightweight, modern Job Portal theme for PlacementStore. Zero page-builder bloat, native responsive design, and blazing fast loading.
Version: 1.0.0
Tested up to: 7.0.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: placementstore
*/

/* ==========================================================================
   Universal Grid / List View Switcher Styles - Placement Store
   ========================================================================== */

/* Switcher Button Pill - Compact Icon Only */
.ps-universal-view-switcher {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 9px;
    border: 1px solid #e2e8f0;
    gap: 3px;
    vertical-align: middle;
}

.ps-view-btn {
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
}

.ps-view-btn:hover:not(.active) {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.8);
}

.ps-view-btn.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.ps-view-btn.active svg {
    stroke: #ffffff;
}

/* --------------------------------------------------------------------------
   List View Container & Card Styles (Optimized & Minimal)
   -------------------------------------------------------------------------- */
#ps-blog-grid.ps-list-view,
.ps-posts-grid.ps-list-view,
[data-view-container].ps-list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

#ps-blog-grid.ps-list-view .blog-card,
.ps-posts-grid.ps-list-view .blog-card,
[data-view-container].ps-list-view article {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
    min-height: 190px !important;
}

#ps-blog-grid.ps-list-view .blog-card:hover,
.ps-posts-grid.ps-list-view .blog-card:hover,
[data-view-container].ps-list-view article:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
    border-color: #cbd5e1 !important;
}

#ps-blog-grid.ps-list-view .blog-card > div:first-child,
[data-view-container].ps-list-view article > div:first-child {
    display: flex !important;
    flex-direction: row !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

#ps-blog-grid.ps-list-view .blog-card-media,
[data-view-container].ps-list-view .blog-card-media {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    height: 100% !important;
    min-height: 180px !important;
    aspect-ratio: auto !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

#ps-blog-grid.ps-list-view .blog-card-media img,
#ps-blog-grid.ps-list-view .blog-card-media a {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

#ps-blog-grid.ps-list-view .blog-card > div:first-child > div:last-child,
[data-view-container].ps-list-view article > div:first-child > div:last-child {
    padding: 20px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

#ps-blog-grid.ps-list-view .blog-card h3 {
    font-size: 18px !important;
    margin: 0 0 8px !important;
    line-height: 1.4 !important;
}

#ps-blog-grid.ps-list-view .blog-card p {
    -webkit-line-clamp: 2 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

#ps-blog-grid.ps-list-view .blog-card > div:last-child,
[data-view-container].ps-list-view article > div:last-child {
    min-width: 175px !important;
    max-width: 190px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 20px !important;
    border-top: none !important;
    border-left: 1px solid #f1f5f9 !important;
    background: #fafafa !important;
    flex-shrink: 0 !important;
}

#ps-blog-grid.ps-list-view .blog-card > div:last-child a {
    background: #eff6ff !important;
    color: #2563eb !important;
    padding: 9px 18px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

#ps-blog-grid.ps-list-view .blog-card > div:last-child a:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

@media (max-width: 880px) {
    #ps-blog-grid.ps-list-view .blog-card,
    [data-view-container].ps-list-view article {
        flex-direction: column !important;
    }
    #ps-blog-grid.ps-list-view .blog-card > div:first-child,
    [data-view-container].ps-list-view article > div:first-child {
        flex-direction: column !important;
    }
    #ps-blog-grid.ps-list-view .blog-card-media,
    [data-view-container].ps-list-view .blog-card-media {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 16/9 !important;
        height: auto !important;
    }
    #ps-blog-grid.ps-list-view .blog-card > div:last-child,
    [data-view-container].ps-list-view article > div:last-child {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        border-left: none !important;
        border-top: 1px solid #f1f5f9 !important;
        padding: 14px 20px !important;
    }
}
