/**
 * Article Management System - Styles
 *
 * @package PremierPlug_Talent_Management
 * @since 1.1.0
 */

/* ==========================================================================
   Article Tabs
   ========================================================================== */

.pptm-talent-articles-section {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #f0f0f0;
}

.pptm-section-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: #BC1F2F;
}

.pptm-article-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pptm-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    bottom: -2px;
}

.pptm-tab-btn:hover {
    color: #BC1F2F;
}

.pptm-tab-btn.active {
    color: #BC1F2F;
    border-bottom-color: #BC1F2F;
}

.pptm-tab-count {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 6px;
    font-weight: 600;
}

.pptm-tab-btn.active .pptm-tab-count {
    background: #BC1F2F;
    color: #fff;
}

/* ==========================================================================
   Articles Grid
   ========================================================================== */

.pptm-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.pptm-grid-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.pptm-grid-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pptm-grid-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   Article Card
   ========================================================================== */

.pptm-article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pptm-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(188, 31, 47, 0.15);
}

.pptm-article-card.is-featured {
    border: 2px solid #BC1F2F;
}

.pptm-article-card-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    padding-top: 60%;
}

.pptm-article-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pptm-article-card:hover .pptm-article-card-image img {
    transform: scale(1.05);
}

.pptm-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #BC1F2F;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.pptm-featured-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.pptm-article-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pptm-article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.pptm-article-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pptm-type-press_release {
    background: #e3f2fd;
    color: #1976d2;
}

.pptm-type-blog_article {
    background: #f3e5f5;
    color: #7b1fa2;
}

.pptm-type-award {
    background: #fff3e0;
    color: #f57c00;
}

.pptm-type-news {
    background: #e8f5e9;
    color: #388e3c;
}

.pptm-type-media_coverage {
    background: #fce4ec;
    color: #c2185b;
}

.pptm-article-date {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pptm-article-date .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.pptm-article-card-title {
    font-size: 18px;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.pptm-article-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pptm-article-card-title a:hover {
    color: #BC1F2F;
}

.pptm-article-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.pptm-article-source {
    font-size: 13px;
    color: #888;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pptm-article-source .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.pptm-article-card-footer {
    margin-top: auto;
    padding-top: 15px;
}

.pptm-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #BC1F2F;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: gap 0.3s ease;
}

.pptm-read-more:hover {
    gap: 10px;
}

.pptm-read-more .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Articles List View
   ========================================================================== */

.pptm-articles-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pptm-article-list-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.pptm-article-list-item:hover {
    box-shadow: 0 4px 16px rgba(188, 31, 47, 0.15);
}

.pptm-article-thumbnail {
    flex-shrink: 0;
    width: 200px;
}

.pptm-article-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.pptm-article-content {
    flex: 1;
}

.pptm-article-excerpt {
    color: #666;
    margin: 12px 0;
    line-height: 1.6;
}

.pptm-article-link {
    display: inline-block;
    color: #BC1F2F;
    font-weight: 600;
    text-decoration: none;
}

.pptm-article-link:hover {
    text-decoration: underline;
}

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

.pptm-single-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pptm-article-header {
    margin-bottom: 40px;
}

.pptm-featured-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #BC1F2F;
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 20px;
}

.pptm-article-meta-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pptm-article-title {
    font-size: 36px;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #333;
}

.pptm-article-meta-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.pptm-article-author,
.pptm-article-source-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.pptm-article-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.pptm-article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.pptm-article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.pptm-article-content p {
    margin-bottom: 20px;
}

.pptm-article-content h2,
.pptm-article-content h3,
.pptm-article-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.pptm-article-talents,
.pptm-related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.pptm-talents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pptm-talent-mini-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.pptm-talent-mini-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pptm-talent-mini-image {
    margin-bottom: 12px;
}

.pptm-talent-mini-image img {
    width: 100%;
    border-radius: 6px;
}

.pptm-talent-mini-info h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
}

.pptm-talent-mini-info a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pptm-talent-mini-info a:hover {
    color: #BC1F2F;
}

.pptm-talent-category {
    display: inline-block;
    font-size: 12px;
    color: #888;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

/* ==========================================================================
   Archive Page
   ========================================================================== */

.pptm-articles-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pptm-archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.pptm-archive-title {
    font-size: 42px;
    margin-bottom: 15px;
    color: #BC1F2F;
}

.pptm-archive-description {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.pptm-pagination {
    margin-top: 50px;
    text-align: center;
}

.pptm-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pptm-pagination .page-numbers:hover,
.pptm-pagination .page-numbers.current {
    background: #BC1F2F;
    border-color: #BC1F2F;
    color: #fff;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.pptm-loading {
    text-align: center;
    padding: 40px;
}

.pptm-loading .spinner {
    float: none;
    margin: 0 auto 15px auto;
}

.pptm-no-articles {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

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

@media screen and (max-width: 1024px) {
    .pptm-grid-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .pptm-grid-columns-3,
    .pptm-grid-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pptm-article-tabs {
        gap: 5px;
    }

    .pptm-tab-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .pptm-article-list-item {
        flex-direction: column;
    }

    .pptm-article-thumbnail {
        width: 100%;
    }

    .pptm-article-title {
        font-size: 28px;
    }

    .pptm-single-article {
        padding: 20px 15px;
    }

    .pptm-talents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .pptm-articles-grid,
    .pptm-grid-columns-2,
    .pptm-grid-columns-3,
    .pptm-grid-columns-4 {
        grid-template-columns: 1fr;
    }

    .pptm-article-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .pptm-article-tabs::-webkit-scrollbar {
        display: none;
    }

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

    .pptm-archive-title {
        font-size: 32px;
    }

    .pptm-talents-grid {
        grid-template-columns: 1fr;
    }

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