/* Pokemon Card Single Page Styles */

.pokemon-card-single-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pokemon-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.pokemon-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.pokemon-breadcrumb a:hover {
    text-decoration: underline;
}

.pokemon-breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.pokemon-card-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    margin-top: 20px;
}

/* Seção da Imagem */
.pokemon-card-image-section {
    text-align: center;
}

.pokemon-card-image-large {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-image-main {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.pokemon-learn-more-btn {
    display: inline-block;
    background: linear-gradient(45deg, #0073aa, #005177);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pokemon-learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,115,170,0.4);
    color: white;
}

/* Seção de Informações */
.pokemon-card-info-section {
    padding-left: 20px;
}

.pokemon-card-header {
    border-bottom: 3px solid #0073aa;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.pokemon-card-title {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.pokemon-card-meta {
    display: flex;
    gap: 15px;
    font-size: 1.1em;
    color: #666;
}

.set-info-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.set-images {
    display: flex;
    align-items: center;
    gap: 8px;
}

.set-symbol,
.set-logo {
    height: 24px;
    width: auto;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.set-symbol {
    max-width: 24px;
}

.set-logo {
    max-height: 20px;
    max-width: 60px;
}

/* Logo grande entre o título e a linha */
.set-logo-large {
    margin: 6px 0 8px 0;
    text-align: left;
}
.set-logo-large img {
    max-height: 48px;
    width: auto;
    image-rendering: auto;
    background: transparent;
}

.set-text-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Símbolo inline ao lado do nome do set */
.set-symbol-inline {
    height: 20px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.card-set {
    font-weight: 600;
    color: #0073aa;
}

.card-number {
    background: #f1f3f4;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Grid de Informações */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.info-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
}

.info-item label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.info-item span {
    color: #212529;
    font-weight: 500;
}

/* Badges de Tipos */
.pokemon-types {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.type-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.type-fire { background: linear-gradient(45deg, #ff4444, #cc3333); }
.type-water { background: linear-gradient(45deg, #4488ff, #3366cc); }
.type-grass { background: linear-gradient(45deg, #44aa44, #338833); }
.type-lightning { background: linear-gradient(45deg, #ffdd44, #ccaa33); }
.type-psychic { background: linear-gradient(45deg, #aa44aa, #883388); }
.type-fighting { background: linear-gradient(45deg, #bb5544, #884433); }
.type-darkness { background: linear-gradient(45deg, #444444, #222222); }
.type-metal { background: linear-gradient(45deg, #888888, #666666); }
.type-fairy { background: linear-gradient(45deg, #ff88dd, #cc66aa); }
.type-dragon { background: linear-gradient(45deg, #8844aa, #663388); }
.type-colorless { background: linear-gradient(45deg, #aaaaaa, #888888); }

/* Badge de Raridade */
.rarity-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
}

.rarity-common { background: #6c757d; color: white; }
.rarity-uncommon { background: #28a745; color: white; }
.rarity-rare { background: #ffc107; color: #212529; }
.rarity-rare-holo { background: linear-gradient(45deg, #dc3545, #a71e2a); color: white; }
.rarity-rare-secret { background: linear-gradient(45deg, #6f42c1, #4c2a85); color: white; }

.hp-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #dc3545;
}

/* Seções Especiais */
.pokemon-abilities,
.pokemon-attacks,
.pokemon-prices,
.pokemon-weaknesses-resistances,
.pokemon-flavor-text,
.pokemon-legalities,
.pokemon-retreat,
.pokemon-evolutions,
.pokemon-pokedex,
.pokemon-rules {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pokemon-abilities h3,
.pokemon-attacks h3,
.pokemon-prices h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

/* Ícones de Energia */
.energy-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 2px;
    vertical-align: middle;
}

.energy-icon-small {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
}

.energy-cost-container {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
}

/* Cards de Habilidades e Ataques */
.ability-card,
.attack-card {
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}

.ability-card h4,
.attack-card h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.attack-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.attack-damage {
    background: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 1.1em;
}

.attack-cost {
    margin-bottom: 8px;
    font-size: 0.9em;
}

.energy-cost {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 3px;
}

.attack-text,
.ability-card p {
    color: #495057;
    line-height: 1.4;
    margin: 0;
}

/* Fraquezas e Resistências */
.pokemon-weaknesses-resistances {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.weakness-item,
.resistance-item {
    display: inline-block;
    padding: 6px 12px;
    margin: 3px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: bold;
}

.weakness-item {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.resistance-item {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Flavor Text */
.flavor-text {
    font-style: italic;
    color: #6c757d;
    font-size: 1.1em;
    line-height: 1.5;
    text-align: center;
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Tabela de Preços */
.prices-table {
    overflow-x: auto;
}

.prices-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.prices-table th,
.prices-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.prices-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.price-value {
    font-weight: bold;
    color: #28a745;
}

/* Legalidades */
.legalities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.legality-item {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    border: 1px solid;
}

.legality-legal {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.legality-banned {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.legality-restricted {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

/* Responsividade */
@media (max-width: 768px) {
    .pokemon-card-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pokemon-card-image-section {
        order: 1;
    }
    
    .pokemon-card-info-section {
        order: 2;
        padding-left: 0;
    }
    
    .pokemon-card-title {
        font-size: 2em;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .pokemon-weaknesses-resistances {
        grid-template-columns: 1fr;
    }
    
    .attack-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .pokemon-card-single-page {
        padding: 10px;
    }
    
    .pokemon-card-title {
        font-size: 1.8em;
    }
    
    .pokemon-card-meta {
        flex-direction: column;
        gap: 5px;
    }
}