/**
 * InterPoker Theme - Additional Styles
 *
 * @package InterPoker
 * @since 1.0.0
 */

/* ==========================================================================
   Poker Card Styles (Enhanced)
   ========================================================================== */
.poker-card {
    position: relative;
    width: 45px;
    height: 63px;
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    border: 2px solid #333;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.poker-card.red {
    color: #e94560;
}

.poker-card.black {
    color: #1a1a2e;
}

.poker-card span {
    font-size: 0.75rem;
    line-height: 1;
}

/* ==========================================================================
   Hand Rankings List (Enhanced)
   ========================================================================== */
.hand-rankings-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: hand-ranking;
}

.hand-ranking-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    counter-increment: hand-ranking;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hand-ranking-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.hand-ranking-item::before {
    content: counter(hand-ranking);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--ip-primary) 0%, #2d2d4a 100%);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hand-cards {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.hand-info {
    flex: 1;
}

.hand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ip-primary);
    margin: 0 0 0.5rem 0;
}

.hand-description {
    color: #666;
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Tournament Table Enhancements
   ========================================================================== */
.tournament-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tournament-table th {
    background: var(--ip-primary);
    color: #fff;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    white-space: nowrap;
}

.tournament-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.tournament-table tbody tr:last-child td {
    border-bottom: none;
}

.tournament-table tbody tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-upcoming {
    background: #dbeafe;
    color: #1e40af;
}

.status-live {
    background: #dcfce7;
    color: #166534;
    animation: pulse-live 2s infinite;
}

.status-completed {
    background: #f3f4f6;
    color: #374151;
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ==========================================================================
   Player Card Enhancements
   ========================================================================== */
.player-card .card-image {
    aspect-ratio: 4/5;
}

.player-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.player-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ip-primary);
    display: block;
}

.stat-label {
    font-size: 0.6875rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Glossary Styles
   ========================================================================== */
.glossary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.glossary-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: 600;
    color: var(--ip-primary);
    transition: all 0.2s ease;
}

.glossary-nav a:hover,
.glossary-nav a.active {
    background: var(--ip-primary);
    color: #fff;
}

/* ==========================================================================
   Social Share
   ========================================================================== */
.social-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid #f0f0f0;
}

.share-label {
    font-weight: 600;
    color: #666;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.social-share a:hover {
    background: var(--ip-primary);
    color: #fff;
}

/* ==========================================================================
   Article Styles
   ========================================================================== */
.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.entry-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ip-secondary);
}

.entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid var(--ip-secondary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.entry-content img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

.entry-content a {
    color: var(--ip-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    color: var(--ip-primary);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: #f0f0f0;
    border-radius: 8px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.page-numbers:hover {
    background: var(--ip-primary);
    color: #fff;
}

.page-numbers.current {
    background: var(--ip-primary);
    color: #fff;
}

.page-numbers.dots {
    background: none;
    cursor: default;
}

.page-numbers.dots:hover {
    background: none;
    color: #333;
}

/* ==========================================================================
   Reading Time & Meta
   ========================================================================== */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #888;
    font-size: 0.875rem;
}

.reading-time::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #ccc;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.article-meta {
    font-size: 0.875rem;
    color: #888;
}

.article-meta a {
    color: var(--ip-secondary);
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
section {
    margin-bottom: 3rem;
}

section h2 {
    margin-bottom: 1.5rem;
}

.section-intro {
    font-size: 1.125rem;
    color: #666;
    max-width: 700px;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Widget Styles
   ========================================================================== */
.widget {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--ip-secondary);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.widget li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .social-share,
    .btn,
    .nav-links {
        display: none !important;
    }

    .content-sidebar {
        display: block;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .hand-ranking-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
