/* How To Play - Design Moderno com Tabs */

/* Garantir que o menu screen seja clicável */
#howToPlayScreen {
    pointer-events: auto !important;
}

.how-to-play-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.htp-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 70, 85, 0.1));
    border-bottom: 2px solid rgba(0, 240, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.htp-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #00f0ff, #ff4655);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.htp-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Tabs Navigation */
.htp-tabs {
    display: flex;
    gap: 10px;
    padding: 15px 10px;
    background: rgba(0, 0, 0, 0.5);
    overflow-x: auto;
    flex-wrap: wrap;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 99;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    flex-shrink: 0;
}

.htp-tab-btn {
    flex: 0 0 auto;
    background: linear-gradient(135deg, rgba(20, 30, 40, 0.8), rgba(15, 25, 35, 0.8));
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(0, 240, 255, 0.2);
    padding: 15px 25px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 11;
    pointer-events: auto;
}

.htp-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.htp-tab-btn:hover::before {
    left: 100%;
}

.htp-tab-btn:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 200, 255, 0.2));
    border-color: rgba(0, 240, 255, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.htp-tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(0, 200, 255, 0.3));
    border-color: #00f0ff;
    color: #00f0ff;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.1);
    transform: translateY(-3px);
}

.htp-tab-icon {
    font-size: 1.5rem;
}

/* Tab Content */
.htp-tab-content {
    display: none;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    flex: 1;
    padding: 20px;
}

.htp-tab-content.active {
    display: block;
}

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

/* Sections */
.htp-section {
    background: linear-gradient(135deg, rgba(15, 25, 35, 0.9), rgba(20, 30, 40, 0.85));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.htp-section:last-child {
    margin-bottom: 80px;
}

.htp-section h2 {
    color: #00f0ff;
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 240, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.htp-section h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 20px 0 12px 0;
    padding-left: 12px;
    border-left: 3px solid #00f0ff;
}

/* Info Cards */
.info-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    border-left: 4px solid #00f0ff;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}

.info-card strong {
    color: #FFD700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.info-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* Character Grid */
.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.char-card {
    background: linear-gradient(135deg, rgba(20, 30, 45, 0.9), rgba(25, 35, 50, 0.85));
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

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

.char-card.ally {
    --char-color: #4A90E2;
    border-color: rgba(74, 144, 226, 0.3);
}

.char-card.enemy {
    --char-color: #FF4655;
    border-color: rgba(255, 70, 85, 0.3);
}

.char-card.neutral {
    --char-color: #888;
    border-color: rgba(136, 136, 136, 0.3);
}

.char-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.3);
    border-color: var(--char-color);
}

.char-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.char-card-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.char-card-name {
    flex: 1;
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.char-card-hp {
    background: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.char-card-ability,
.char-card-strategy {
    margin: 12px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.char-card-ability strong,
.char-card-strategy strong {
    color: #00f0ff;
    display: block;
    margin-bottom: 5px;
}

/* Tips List */
.tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.tip-item {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 200, 255, 0.05));
    border-left: 4px solid #00f0ff;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tip-item:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 200, 255, 0.1));
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Controls Grid */
.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.control-item {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.control-item:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: #00f0ff;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
}

.control-key {
    font-size: 2rem;
    font-weight: 900;
    color: #FFD700;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.control-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Footer */
.htp-footer {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    border-radius: 15px;
    border: 2px solid rgba(0, 240, 255, 0.2);
}

.htp-footer-btn {
    margin: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .htp-header h1 {
        font-size: 2rem;
    }
    
    .htp-section {
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .how-to-play-container {
        padding: 0;
    }
    
    .htp-header {
        padding: 15px;
    }
    
    .htp-tab-content {
        padding: 15px;
    }
    
    .htp-header h1 {
        font-size: 1.8rem;
    }
    
    .htp-header p {
        font-size: 0.9rem;
    }
    
    .htp-tabs {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
    }
    
    .htp-tab-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .htp-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .htp-section h2 {
        font-size: 1.3rem;
        gap: 10px;
    }
    
    .htp-section h3 {
        font-size: 1.1rem;
        margin: 15px 0 10px 0;
    }
    
    .info-card {
        padding: 15px;
        margin: 12px 0;
    }
    
    .info-card strong {
        font-size: 1rem;
    }
    
    .info-card p {
        font-size: 0.95rem;
    }
    
    .char-grid,
    .tips-list,
    .controls-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .char-card {
        padding: 15px;
    }
    
    .char-card-name {
        font-size: 1.1rem;
    }
    
    .char-card-hp {
        font-size: 0.85rem;
        padding: 4px 10px;
    }
    
    .char-card-ability,
    .char-card-strategy {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .tip-item {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .control-key {
        font-size: 1.5rem;
    }
    
    .control-desc {
        font-size: 0.9rem;
    }
}

/* Scrollbar */
.how-to-play-content::-webkit-scrollbar {
    width: 10px;
}

.how-to-play-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.how-to-play-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00f0ff, #0080ff);
    border-radius: 5px;
}

.how-to-play-content::-webkit-scrollbar-thumb:hover {
    background: #00f0ff;
}
