/* Styling for the Publisher page (publisher.html) */

canvas {
    display: block;
    margin: 1rem auto;
    max-width: 100%;
}

.publisher-genre-profile {
    max-width: 1200px;
    margin: 1rem auto;
}

.publisher-ccu-profile {
    max-width: 1200px;
    margin: 1rem auto;
}

.publisher-release-timeline {
    width: 100%;
    max-width: 1400px; /* give more horizontal space */
    margin: 1rem auto;  /* separate from radar chart */
    padding: 0rem;
}

.publisher-ccu-compare {
    text-align: center;
}

.publisher-ccu-profile h2,
.publisher-release-timeline h2,
.publisher-genre-profile h2,
.publisher-ccu-compare h3,
.publisher-game-breakdown h3 {
    text-align: center;
    margin-bottom: 0rem;
}

.timeline-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

.timeline-card {
    position: relative;
    background: #1f2937;
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 0.5rem;
    min-width: 180px;
    flex: 1 0 180px;
}

.timeline-card:hover .tooltip {
    display: block;
}

.tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    background: rgba(31, 41, 55, 0.9);
    color: #f9fafb;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    width: 220px;
}

.ccu-window-controls {
    text-align: center;
    margin-bottom: 0rem;
}

.ccu-window-controls input,
.ccu-window-controls button,
.ccu-window-controls select {
    margin: 0 0.25rem;
    padding: 0.25rem 0.5rem;
}

.publisher-game-breakdown {
    text-align: center;

}

.downloadCCU {
    margin-left: 0rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: #f59e0b;
    color: white;
    cursor: pointer;
}

/* Comparison input styling */

#showPublisherCompare {
    display: block;
    margin: 1.5rem auto;

    padding: 0.75rem 1.5rem;

    border: none;
    border-radius: 6px;

    background-color: #3b82f6;
    color: #ffffff;

    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    transition: background-color 0.2s ease,
                transform 0.15s ease;
}

#compareInput {
    width: 300px;
    font-size: 16px;
    padding: 0.5rem;
    border-radius: 4px;
    border: none;
}

#compareSuggestions {
    list-style: none;
    padding-left: 0;
    margin-top: 0.25rem;
    width: 300px;
    background: #1e293b;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
}

#compareSuggestions li {
    padding: 0.5rem;
    cursor: pointer;
    color: #e5e7eb;
}

#compareSuggestions li:hover {
    background: #334155;
}

#comparisonContainer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
}

#addComparePublisher {
    margin: 0.5rem auto;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: #3b82f6;
    color: white;
    cursor: pointer;
}

/* Various chart styling */

#gameBreakdownContainer {
    width: 100%;
    max-width: 1200px;
    margin: 0rem auto;
    height: 800px; /* prevents Chart.js from collapsing */
}

.publisher-earnings-ccu-breakdown {
    text-align: center;

}

#earningsChartContainer {
    height: 600px;
}

#playtimeDominanceContainer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.playtime-chart-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
}

.playtime-chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

.publisher-playtime-dominance {
    text-align: center;
    max-width: 1200px;
    margin: 1rem auto;
}

.playtime-dedication-callout {

    max-width: 900px;
    margin: 25px auto 0 auto;
    padding: 20px;

    text-align: center;
    font-size: 1.8rem;
    line-height: 1.6;

    color: #e5e7eb;
    background: #0f172a;

    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
}

.playtime-dedication-callout strong {

    color: #60a5fa;
    font-weight: 700;
}

/* Earnings Metrics styling */

.earnings-metrics-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    min-width: 180px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.metric-label {
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.metric-value {
    color: #e5e7eb;
    font-size: 1.6rem;
    font-weight: 700;
}


/* Game Table styling */

/* Centering */

.publisher-game-table-container {
    max-width: 1500px;
    margin: 0 auto;          /* centers the whole block */
    padding: 1rem;
}