/* ===========================================
   Platform Charts - Gemeinsame Styles
   Wird von den eingebetteten Chart-PHP-Dateien verwendet
   =========================================== */

/* Hide utility */
.hide {
    display: none !important;
}

/* Main Container - scoped to platform-chart-section */
.platform-chart-section .main-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 25px;
    animation: fadeIn 0.6s ease-out;
}

/* Chart Container - scoped to platform-chart-section */
.platform-chart-section .chart-container {
    width: 65%;
    height: 32vh;
    min-height: 32vh;
    background: var(--bg-glass);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

/* Table Container - scoped to platform-chart-section */
.platform-chart-section .table-container {
    width: 30%;
    overflow-x: auto;
    border-radius: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
}

/* Table Styles */
.platform-chart-section table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}

.platform-chart-section th {
    padding: 14px 10px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9em;
    border-bottom: 1px solid var(--border-color);
}

.platform-chart-section tr {
    background-color: transparent;
    color: var(--text-primary);
    height: 50px;
    transition: all 0.3s ease;
}

.platform-chart-section td {
    padding: 10px 7px;
    border-bottom: 1px solid var(--border-color);
}

/* Change Badges */
.change {
    border-radius: 20px;
    padding: 5px 10px;
    margin-left: 12px;
    display: inline-block;
    font-size: 0.75em;
    font-weight: 600;
}

.positive {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.platform-chart-section .expand {
    width: 100% !important;
}

/* Platform Chart Headers */
.platform-chart-section h2 {
    color: var(--text-primary);
    font-size: 1.5em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Platform-specific Icon Colors */
.platform-chart-section h2 .icon-youtube {
    color: #ff0000;
}

.platform-chart-section h2 .icon-spotify {
    color: #1db954;
}

.platform-chart-section h2 .icon-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.platform-chart-section h2 .icon-tiktok {
    color: #fe2c55;
}

.platform-chart-section h2 .icon-twitter {
    color: #1da1f2;
}

.platform-chart-section h2 .icon-twitch {
    color: #9146ff;
}

/* Platform-specific Row Hover Colors */
.platform-chart-section.youtube tr:hover {
    background-color: rgba(255, 0, 0, 0.05);
}

.platform-chart-section.spotify tr:hover {
    background-color: rgba(29, 185, 84, 0.05);
}

.platform-chart-section.instagram tr:hover {
    background-color: rgba(193, 53, 132, 0.05);
}

.platform-chart-section.tiktok tr:hover {
    background-color: rgba(254, 44, 85, 0.05);
}

.platform-chart-section.twitter tr:hover {
    background-color: rgba(29, 161, 242, 0.05);
}

.platform-chart-section.twitch tr:hover {
    background-color: rgba(145, 70, 255, 0.05);
}

/* Responsive */
@media only screen and (max-width: 600px) {
    .platform-chart-section .main-container {
        flex-direction: column;
    }

    .platform-chart-section .chart-container {
        width: 100%;
        height: 45vh;
    }

    .platform-chart-section .table-container {
        width: 100%;
        margin-top: 0;
    }
}
