/*
 * VoiceItOnce Frontend Styles - ItOnce Design System v2.0
 * Modern article display with ItOnce branding
 * 
 * @package VoiceItOnce
 * @since 1.0.0
 */

/* ItOnce Design System Colors for Frontend */
:root {
    --vo-primary: #2271b1;
    --vo-primary-dark: #135e96;
    --vo-primary-light: #72aee6;
    --vo-primary-lighter: #E6F3FF;
}

/* Article Grid */
.voice-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.voice-article-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.voice-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(34, 113, 177, 0.15);
    border-color: var(--vo-primary);
}

.voice-article-card .entry-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.voice-article-card .entry-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.voice-article-card:hover .entry-thumbnail img {
    transform: scale(1.05);
}

.voice-article-card .entry-header {
    padding: 20px;
}

.voice-article-card .entry-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
}

.voice-article-card .entry-title a {
    color: #1d2327;
    text-decoration: none;
    transition: color 0.2s ease;
}

.voice-article-card .entry-title a:hover {
    color: var(--vo-primary);
}

.voice-article-card .entry-summary {
    padding: 0 20px 20px;
    color: #646970;
    font-size: 0.9rem;
    line-height: 1.6;
}

.voice-article-card .entry-footer {
    padding: 15px 20px;
    border-top: 1px solid #e2e4e7;
    background: #f9fafb;
}

.voice-article-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--vo-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.voice-article-card .read-more:hover {
    background: var(--vo-primary-dark);
    transform: translateY(-1px);
}

/* Single Article */
.voice-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.voice-article .entry-header {
    margin-bottom: 30px;
    text-align: center;
}

.voice-article .entry-title {
    margin: 0 0 20px;
    font-size: 2.5rem;
    line-height: 1.2;
    color: #1d2327;
}

.voice-article .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1d2327;
}

.voice-article .entry-content p {
    margin-bottom: 1.5em;
}

.voice-article .entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e4e7;
}

/* Article Meta */
.voice-article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    color: #646970;
    font-size: 0.9rem;
}

.voice-article-meta a {
    color: var(--vo-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.voice-article-meta a:hover {
    color: var(--vo-primary-dark);
}

/* Article Navigation */
.voice-article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.voice-article-prev,
.voice-article-next {
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
}

.voice-article-nav-label {
    display: block;
    font-size: 0.8rem;
    color: #646970;
    margin-bottom: 5px;
}

.voice-article-navigation a {
    color: #1d2327;
    text-decoration: none;
    font-weight: 600;
}

.voice-article-navigation a:hover {
    color: var(--vo-primary);
}

/* Article Share */
.voice-article-share {
    margin: 30px 0;
    text-align: center;
}

.voice-article-share-label {
    display: block;
    margin-bottom: 15px;
    color: #646970;
    font-size: 0.9rem;
}

.voice-article-share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.voice-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.voice-share-button:hover {
    transform: scale(1.1);
}

.voice-share-facebook {
    background: #1877f2;
}

.voice-share-twitter {
    background: #1da1f2;
}

.voice-share-linkedin {
    background: #0077b5;
}

/* Article Analytics */
.voice-article-analytics {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
}

.voice-analytics-title {
    margin: 0 0 20px;
    font-size: 1.2rem;
    color: #1d2327;
    text-align: center;
}

.voice-analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.voice-analytics-stat {
    text-align: center;
}

.voice-analytics-label {
    display: block;
    font-size: 0.8rem;
    color: #646970;
    margin-bottom: 5px;
}

.voice-analytics-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vo-primary);
} 