/**
 * Player Sidebar Styles
 * 
 * File: public/css/sidebar-player.css
 */

/* ========================================
   PLAYER PAGE SPECIFIC OVERRIDES
   These only affect single-player pages
   ======================================== */

/* Override single post layout that might be inherited */
body.single-player .site-main {
    max-width: none !important;
    padding: 0 !important;
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

/* Override any theme containers on player pages */
body.single-player .site-content,
body.single-player .content-area,
body.single-player #primary {
    max-width: none !important;
}

/* ========================================
   PLAYER PAGE LAYOUT
   ======================================== */

/* Player Page Layout */
.player-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem 3rem;
}

.player-content {
    min-width: 0; /* Prevents grid blowout */
}

.player-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ========================================
   SIDEBAR MODULE STYLES
   ======================================== */

/* Module Base Styles */
.sidebar-module {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.25rem;
}

.sidebar-module .module-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    color: #d4af37; /* Gold */
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CTA Block */
.cta-block .cta-description {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.price-alert-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price-alert-form input[type="email"] {
    padding: 0.75rem;
    border: 1px solid #444;
    background: #0a0a0a;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
}

.price-alert-form input[type="email"]:focus {
    outline: none;
    border-color: #d4af37;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #d4af37;
    color: #000;
}

.btn-primary:hover {
    background: #f0c947;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Related Players */
.related-players-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.related-player-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.related-player-thumb {
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 4px;
}

.related-player-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.related-player-thumb:hover img {
    transform: scale(1.05);
}

.related-player-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.related-player-name {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.2;
}

.related-player-name a {
    color: #fff;
    text-decoration: none;
}

.related-player-name a:hover {
    color: #d4af37;
}

.related-player-position {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Market Watch */
.market-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem;
    background: #0a0a0a;
    border-radius: 4px;
}

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

.stat-value {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.stat-item.trend-up .stat-value {
    color: #4ade80; /* Green */
}

.stat-item.trend-down .stat-value {
    color: #f87171; /* Red */
}

.stat-item.trend-stable .stat-value {
    color: #fbbf24; /* Yellow */
}

.no-data {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.stat-updated {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid #333;
}

.stat-updated small {
    color: #666;
    font-size: 0.7rem;
}

/* Character Quote */
.quote-content blockquote {
    margin: 0;
    padding: 1rem;
    background: #0a0a0a;
    border-left: 3px solid #d4af37;
    border-radius: 4px;
    color: #ccc;
    font-style: italic;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Team CTA */
.team-cta-content {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.team-cta-link,
.sport-cta-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}

.team-cta-link:hover,
.sport-cta-link:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.cta-icon {
    font-size: 1.35rem;
}

.cta-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .player-page-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .player-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .related-players-grid {
        grid-template-columns: 1fr;
    }
    
    .player-page-wrapper {
        padding: 1rem;
    }
}