/**
 * Playbook Visual Redesign CSS
 * Modern card-based layout with enhanced visual hierarchy
 */

/* ============================================
   BASE PLAYBOOK CONTAINER
   ============================================ */

.playbook-view {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   HERO SECTION - Top Overview Card
   ============================================ */

.playbook-hero {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #9b59b6;  /* Purple accent border */
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.playbook-hero-content {
    /* No special positioning needed anymore */
}

.playbook-hero-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playbook-hero-roles {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.playbook-hero-role-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.playbook-hero-role-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.playbook-hero-role-value {
    font-size: 1.1em;
    color: #ffffff;
    font-weight: 600;
}

.playbook-hero-stats {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.playbook-hero-stats-title {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.playbook-hero-stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.playbook-hero-stat-row:last-child {
    margin-bottom: 0;
}

.playbook-hero-stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    min-width: 100px;
}

.playbook-hero-stat-rating {
    color: #ffd700;
    font-size: 1.1em;
    letter-spacing: 2px;
}

.playbook-hero-stat-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    font-style: italic;
}

.playbook-hero-playstyle {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.playbook-hero-playstyle-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-right: 8px;
}

/* ============================================
   SECTION CARDS - Base Style
   ============================================ */

.playbook-section {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.playbook-section:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.playbook-section-header {
    font-size: 1.6em;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(243, 156, 18, 0.3);
    color: #f39c12;
}

/* Section color themes */
.playbook-section.theme-early { border-left: 4px solid #27ae60; }
.playbook-section.theme-mid { border-left: 4px solid #f39c12; }
.playbook-section.theme-late { border-left: 4px solid #9b59b6; }
.playbook-section.theme-win-conditions { border-left: 4px solid #e67e22; }
.playbook-section.theme-playstyle { border-left: 4px solid #3498db; }
.playbook-section.theme-combat { border-left: 4px solid #e74c3c; }
.playbook-section.theme-skills { border-left: 4px solid #1abc9c; }
.playbook-section.theme-jungle { border-left: 4px solid #27ae60; }
.playbook-section.theme-team { border-left: 4px solid #3498db; }
.playbook-section.theme-vision { border-left: 4px solid #f1c40f; }
.playbook-section.theme-counters { border-left: 4px solid #e67e22; }
.playbook-section.theme-creator { border-left: 4px solid #9b59b6; }

/* ============================================
   GAME PHASES - Three Card Layout
   ============================================ */

.playbook-phases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.playbook-phase-card {
    background: rgba(20, 20, 30, 0.5);
    border-radius: 8px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.playbook-phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--phase-color) 0%, transparent 100%);
}

.playbook-phase-card.phase-early {
    --phase-color: #27ae60;
    border-color: rgba(39, 174, 96, 0.3);
}

.playbook-phase-card.phase-mid {
    --phase-color: #f39c12;
    border-color: rgba(243, 156, 18, 0.3);
}

.playbook-phase-card.phase-late {
    --phase-color: #9b59b6;
    border-color: rgba(155, 89, 182, 0.3);
}

.playbook-phase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--phase-color);
}

.playbook-phase-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--phase-color);
    margin: 0 0 5px 0;
}

.playbook-phase-subtitle {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 15px 0;
}

.playbook-phase-rating {
    font-size: 1.4em;
    color: #ffd700;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-align: center;
}

.playbook-phase-notes {
    font-size: 0.95em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   TAG BADGES
   ============================================ */

.playbook-tag-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.4);
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    color: #3498db;
    transition: all 0.2s ease;
}

.playbook-tag-badge:hover {
    background: rgba(52, 152, 219, 0.3);
    border-color: #3498db;
    transform: scale(1.05);
}

/* Tag color variants */
.playbook-tag-badge.variant-primary {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.4);
    color: #3498db;
}

.playbook-tag-badge.variant-success {
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.4);
    color: #2ecc71;
}

.playbook-tag-badge.variant-warning {
    background: rgba(243, 156, 18, 0.2);
    border-color: rgba(243, 156, 18, 0.4);
    color: #f39c12;
}

.playbook-tag-badge.variant-danger {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.4);
    color: #e74c3c;
}

.playbook-tag-badge.variant-purple {
    background: rgba(155, 89, 182, 0.2);
    border-color: rgba(155, 89, 182, 0.4);
    color: #9b59b6;
}

/* ============================================
   TEXT BOXES & HIGHLIGHTS
   ============================================ */

.playbook-text-box {
    background: rgba(52, 152, 219, 0.08);
    border-left: 4px solid #3498db;
    border-radius: 4px;
    padding: 15px 18px;
    margin: 10px 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.playbook-text-box.variant-warning {
    background: rgba(243, 156, 18, 0.08);
    border-left-color: #f39c12;
}

.playbook-text-box.variant-success {
    background: rgba(46, 204, 113, 0.08);
    border-left-color: #2ecc71;
}

.playbook-text-box.variant-danger {
    background: rgba(231, 76, 60, 0.08);
    border-left-color: #e74c3c;
}

.playbook-text-box.variant-purple {
    background: rgba(155, 89, 182, 0.08);
    border-left-color: #9b59b6;
}

/* ============================================
   LISTS - Enhanced Bullet Lists
   ============================================ */

.playbook-bullet-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.playbook-bullet-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.playbook-bullet-list li:last-child {
    border-bottom: none;
}

.playbook-bullet-list li::before {
    content: '▸';
    position: absolute;
    left: 8px;
    color: #3498db;
    font-size: 1.2em;
}

/* Numbered list variant */
.playbook-numbered-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    counter-reset: playbook-counter;
}

.playbook-numbered-list li {
    padding: 12px 0 12px 40px;
    position: relative;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    counter-increment: playbook-counter;
    margin-bottom: 8px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 4px;
}

.playbook-numbered-list li::before {
    content: counter(playbook-counter);
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    font-weight: 700;
}

/* ============================================
   SIDE-BY-SIDE COMPARISON CARDS
   ============================================ */

.playbook-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.playbook-comparison-card {
    background: rgba(20, 20, 30, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.playbook-comparison-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.playbook-comparison-card.variant-success {
    border-left: 4px solid #2ecc71;
    background: rgba(46, 204, 113, 0.05);
}

.playbook-comparison-card.variant-danger {
    border-left: 4px solid #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.playbook-comparison-card.variant-warning {
    border-left: 4px solid #f39c12;
    background: rgba(243, 156, 18, 0.05);
}

.playbook-comparison-card.variant-primary {
    border-left: 4px solid #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.playbook-comparison-card-title {
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.playbook-comparison-card-title.color-success { color: #2ecc71; }
.playbook-comparison-card-title.color-danger { color: #e74c3c; }
.playbook-comparison-card-title.color-warning { color: #f39c12; }
.playbook-comparison-card-title.color-primary { color: #3498db; }

.playbook-comparison-card-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* ============================================
   SUBSECTION HEADERS
   ============================================ */

.playbook-subsection-header {
    font-size: 1.2em;
    font-weight: 600;
    color: #ecf0f1;
    margin: 25px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   QUOTE STYLE (For Philosophy)
   ============================================ */

.playbook-quote {
    background: rgba(155, 89, 182, 0.08);
    border-left: 4px solid #9b59b6;
    padding: 20px 25px;
    margin: 15px 0;
    border-radius: 4px;
    font-style: italic;
    position: relative;
}

.playbook-quote::before {
    content: '"';
    font-size: 3em;
    color: rgba(155, 89, 182, 0.3);
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
}

.playbook-quote-text {
    color: #e8daef;
    line-height: 1.8;
    font-size: 1.05em;
    margin: 0 0 10px 0;
}

.playbook-quote-author {
    color: rgba(155, 89, 182, 0.8);
    font-size: 0.9em;
    text-align: right;
    font-weight: 500;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.playbook-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: white;
}

.playbook-empty-state-title {
    color: #f39c12;
    margin-bottom: 20px;
    font-size: 2em;
}

.playbook-empty-state-text {
    margin-bottom: 30px;
    color: #bdc3c7;
    font-size: 1.1em;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FOOTER / METADATA
   ============================================ */

.playbook-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid rgba(243, 156, 18, 0.3);
    color: #95a5a6;
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.playbook-footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.playbook-footer-label {
    color: #95a5a6;
}

.playbook-footer-value {
    color: #ecf0f1;
    font-weight: 600;
}

.playbook-footer-patch {
    color: #f39c12;
}

.playbook-footer-patch strong {
    color: #ecf0f1;
}

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

@media (max-width: 1024px) {
    .playbook-phases-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .playbook-comparison-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .playbook-view {
        padding: 15px;
    }

    .playbook-hero {
        padding: 20px;
    }

    .playbook-hero-title {
        font-size: 1.8em;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .playbook-section {
        padding: 20px;
    }

    .playbook-section-header {
        font-size: 1.4em;
    }

    .playbook-hero-roles {
        flex-direction: column;
        gap: 10px;
    }

    .playbook-hero-stat-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.playbook-section {
    animation: fadeInUp 0.4s ease-out;
}

.playbook-section:nth-child(1) { animation-delay: 0.05s; }
.playbook-section:nth-child(2) { animation-delay: 0.1s; }
.playbook-section:nth-child(3) { animation-delay: 0.15s; }
.playbook-section:nth-child(4) { animation-delay: 0.2s; }
.playbook-section:nth-child(5) { animation-delay: 0.25s; }

/* ============================================
   UTILITY CLASSES
   ============================================ */

.playbook-mb-sm { margin-bottom: 10px; }
.playbook-mb-md { margin-bottom: 20px; }
.playbook-mb-lg { margin-bottom: 30px; }

.playbook-mt-sm { margin-top: 10px; }
.playbook-mt-md { margin-top: 20px; }
.playbook-mt-lg { margin-top: 30px; }

.playbook-text-center { text-align: center; }
.playbook-text-muted { color: rgba(255, 255, 255, 0.6); }

/* Color utilities */
.playbook-color-purple { color: #9b59b6; }
.playbook-color-primary { color: #3498db; }
.playbook-color-light { color: #ecf0f1; }
.playbook-color-warning { color: #f39c12; }

/* Text utilities */
.playbook-text-underline {
    text-decoration: underline;
}

.playbook-text-primary-link {
    color: #3498db;
    text-decoration: underline;
    font-weight: 600;
}

.playbook-text-primary-link:hover {
    color: #5dade2;
}

/* Skill order display */
.playbook-skill-order {
    font-size: 1.2em;
    color: #f39c12;
    letter-spacing: 2px;
    font-weight: 600;
}

.playbook-skill-order-notes {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Build notes text */
.playbook-build-notes {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Combat info grid items */
.playbook-combat-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.playbook-combat-info-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.playbook-combat-info-value {
    color: #ecf0f1;
}

@media (max-width: 768px) {
    .playbook-combat-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
