/* ActivePlayer Twitch Statistics Styles */

.activeplayer-stats-container {
    max-width: 1200px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.activeplayer-error {
    background: #fee;
    border-left: 4px solid #c00;
    padding: 1rem;
    margin: 1rem 0;
    color: #c00;
}

.activeplayer-meta {
    background: #f5f5f5;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.activeplayer-meta p {
    margin: 0.25rem 0;
}

/* Hero Section */
.ap-twitch-live-stats-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.ap-twitch-live-stats-hero h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    text-align: left;
}

/* Hero content layout with game image */
.ap-twitch-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.ap-twitch-game-image {
    flex-shrink: 0;
    margin-top: 80px;
}

.ap-twitch-game-image img {
    width: 180px;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.ap-twitch-hero-info {
    flex: 1;
    min-width: 0;
}

.ap-twitch-trend {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding: 0.25rem 0;
}

.ap-twitch-trend.positive {
    color: #4ade80;
}

.ap-twitch-trend.negative {
    color: #f87171;
}

.ap-twitch-live-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ap-twitch-stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ap-twitch-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.ap-twitch-stat-card.ap-twitch-highlight {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.ap-twitch-stat-card.ap-twitch-positive {
    background: rgba(72, 187, 120, 0.2);
    border-color: rgba(72, 187, 120, 0.4);
}

.ap-twitch-stat-card.ap-twitch-negative {
    background: rgba(245, 101, 101, 0.2);
    border-color: rgba(245, 101, 101, 0.4);
}

.ap-twitch-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ap-twitch-outro p {
    font-style: italic
}

.ap-twitch-stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Player Count Statistics Button */
.ap-twitch-player-stats-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.ap-twitch-player-stats-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
}

.ap-twitch-player-stats-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ap-twitch-data-note {
    text-align: center !important;
    margin-top: 2rem !important;
    margin-bottom: 0 !important;
    font-size: 10px !important;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95) !important;
    font-style: normal !important;
    text-decoration: none !important;
}

/* Color indicators for trending statistics */
.stat-increase {
    color: #4ade80 !important;
    /* Green for increases */
    font-weight: 600;
}

.stat-decrease {
    color: #f87171 !important;
    /* Red for decreases */
    font-weight: 600;
}

.ap-twitch-data-note em {
    font-style: italic !important;
    text-decoration: none !important;
}

/* Introduction Section */
.ap-twitch-introduction {
    margin: 2rem 0;
    line-height: 1.8;
}

.ap-twitch-introduction a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.ap-twitch-introduction a:hover {
    text-decoration: underline;
}

/* Section Headings */
.ap-twitch-statistics-ultimate h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem 0;
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.ap-twitch-statistics-ultimate h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
    color: #444;
}

/* Tables */
.ap-twitch-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.ap-twitch-stats-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ap-twitch-stats-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
}

.ap-twitch-stats-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.ap-twitch-stats-table tbody tr:hover {
    background: #f9f9f9;
}

.ap-twitch-stats-table tbody tr:last-child td {
    border-bottom: none;
}

/* Chart Section */
.ap-twitch-chart-container {
    position: relative;
    height: 400px;
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ap-twitch-chart-section em {
    display: block;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* FAQ Section */
.ap-twitch-faq-section {
    margin-top: 3rem;
}

.ap-twitch-faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

.ap-twitch-faq-item h3 {
    margin-top: 0;
    color: #667eea;
}

.ap-twitch-faq-item p {
    line-height: 1.7;
    margin-bottom: 0;
}

/* Top Streamers */
.ap-twitch-top-streamers {
    margin: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ap-twitch-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ap-twitch-game-image {
        margin-top: 0;
    }

    .ap-twitch-game-image img {
        width: 150px;
        height: 200px;
    }

    .ap-twitch-hero-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ap-twitch-live-stats-hero h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .ap-twitch-trend {
        display: block;
        text-align: center;
    }

    .ap-twitch-live-summary {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        width: 100%;
    }

    .ap-twitch-stat-card {
        padding: 0.75rem 0.25rem;
        min-width: 0;
    }

    .ap-twitch-stat-number {
        font-size: 1rem;
        white-space: nowrap;
    }

    .ap-twitch-stat-label {
        font-size: 0.6rem;
        line-height: 1.3;
        word-wrap: break-word;
        white-space: normal;
    }

    .ap-twitch-player-stats-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .ap-twitch-stats-table {
        font-size: 0.85rem;
    }

    .ap-twitch-stats-table th,
    .ap-twitch-stats-table td {
        padding: 0.5rem;
    }

    .ap-twitch-chart-container {
        height: 300px;
    }

    .activeplayer-stats-container {
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .ap-twitch-stat-card {
        /*padding: 1.25rem;*/
    }

    .ap-twitch-stat-number {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .ap-twitch-live-stats-hero {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ap-twitch-stats-table thead {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}