/* Pokemon Detail Page Styles */

.pokemon-detail {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

/* Navigation */
.pokemon-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid #d4e5d8;
    border-radius: 8px;
    color: #033c15;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-btn:hover {
    background: #45927c;
    color: white;
    border-color: #45927c;
}

.back-to-list {
    color: #5a6b5c;
    text-decoration: none;
    font-size: 14px;
}

.back-to-list:hover {
    color: #45927c;
}

/* Detail Card */
.detail-card {
    background: white;
    border: 1px solid #d4e5d8;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(3, 60, 21, 0.1);
}

.detail-header {
    background: linear-gradient(135deg, #45927c, #3c836f);
    padding: 30px;
    text-align: center;
    border-bottom: none;
    color: white;
}

.detail-number {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-family: monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.detail-name {
    font-size: 42px;
    font-weight: 800;
    margin: 10px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.detail-types {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

@media (max-width: 768px) {
    .detail-body {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
}

/* Image Section */
.detail-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(69, 146, 124, 0.1), rgba(158, 215, 25, 0.1));
    border-radius: 16px;
    padding: 40px;
}

.detail-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(3, 60, 21, 0.2));
    transition: transform 0.3s ease;
}

.detail-image:hover {
    transform: scale(1.05);
}

/* Info Section */
.detail-info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.info-item {
    background: #f0f7f2;
    border: 1px solid #d4e5d8;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.info-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5a6b5c;
    margin-bottom: 8px;
}

.info-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #033c15;
}

.info-value.specialty {
    color: #22c55e;
}

/* Description */
.detail-description {
    background: #f8faf9;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e8f5e9;
}

.detail-description h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #033c15;
}

.detail-description h3 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #45927c;
}

.detail-description p {
    color: #5a6b5c;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Detail Section */
.detail-section {
    margin-bottom: 40px;
}

.detail-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #033c15;
}

.habitat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.habitat-card {
    background: white;
    border: 1px solid #d4e5d8;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(3, 60, 21, 0.06);
}

.habitat-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #45927c;
}

.habitat-card p {
    color: #5a6b5c;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Actions */
.detail-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 14px 32px;
    background: #45927c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(69, 146, 124, 0.3);
}

.btn-primary:hover {
    background: #3c836f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(69, 146, 124, 0.4);
}

.btn-secondary {
    padding: 10px 20px;
    background: transparent;
    color: #3c836f;
    border: 1px solid #3c836f;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-secondary:hover {
    background: #3c836f;
    color: white;
}

.btn-favorite {
    padding: 14px 32px;
    background: transparent;
    color: #033c15;
    border: 2px solid #d4e5d8;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-favorite:hover {
    border-color: #ec4899;
    color: #ec4899;
}

.btn-favorite.active {
    background: rgba(236, 72, 153, 0.1);
    border-color: #ec4899;
    color: #ec4899;
}

.heart {
    font-size: 20px;
}

/* Type badges for detail page */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.type-grass { background: #22c55e; color: white; }
.type-poison { background: #a855f7; color: white; }
.type-fire { background: #ef4444; color: white; }
.type-water { background: #3b82f6; color: white; }
.type-electric { background: #eab308; color: black; }
.type-bug { background: #84cc16; color: white; }
.type-normal { background: #a8a77a; color: white; }
.type-flying { background: #a98ff3; color: white; }
.type-ground { background: #e2bf65; color: black; }
.type-rock { background: #b6a136; color: white; }
.type-psychic { background: #f472b6; color: white; }
.type-ghost { background: #7c3aed; color: white; }
.type-dragon { background: #7c3aed; color: white; }
.type-dark { background: #475569; color: white; }
.type-steel { background: #94a3b8; color: white; }
.type-fairy { background: #d685ad; color: white; }
.type-ice { background: #67e8f9; color: black; }
.type-fighting { background: #dc2626; color: white; }
