/* Pokesite Clássico - Style */

:root {
    --poke-red: #ef5350;
    --poke-blue: #3b4cca;
    --poke-yellow: #ffde00;
    --poke-dark-blue: #0a285f;
    --bg-light: #f5f5f5;
    --text-dark: #333;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, .signature {
    font-family: 'Press Start 2P', cursive;
}

h1 { font-size: 1.5rem; margin-bottom: 5px; }
h2 { font-size: 1.2rem; margin-bottom: 20px; color: var(--poke-dark-blue); }
.signature { font-size: 0.6rem; color: var(--poke-yellow); margin-bottom: 15px; }

/* Header */
header {
    background-color: var(--poke-red);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    border-bottom: 10px solid var(--poke-dark-blue);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 5px 10px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

nav a:hover {
    border-bottom: 2px solid var(--poke-yellow);
    color: var(--poke-yellow);
}

/* Footer */
footer {
    background-color: var(--poke-dark-blue);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    margin-top: 50px;
}

footer .signature {
    margin-top: 15px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--white);
    margin: 20px 0;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-image img {
    max-width: 200px;
    margin-top: 30px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-top: 5px solid var(--poke-red);
}

.feature-card h3 {
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background-color: var(--poke-blue);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.btn:hover {
    background-color: var(--poke-dark-blue);
}

/* Pokedex Grid */
.pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.pokemon-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.pokemon-card:hover {
    transform: translateY(-5px);
}

.pokemon-id {
    position: absolute;
    top: 10px;
    right: 15px;
    font-weight: bold;
    color: #ccc;
}

.pokemon-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.pokemon-name {
    font-size: 0.7rem;
    margin: 10px 0;
    color: var(--poke-dark-blue);
}

.pokemon-types {
    margin-bottom: 15px;
}

.type-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    margin: 2px;
}

/* Pokemon Types Colors */
.fire { background-color: #F08030; }
.water { background-color: #6890F0; }
.grass { background-color: #78C850; }
.electric { background-color: #F8D030; color: #333; }
.ice { background-color: #98D8D8; }
.fighting { background-color: #C03028; }
.poison { background-color: #A040A0; }
.ground { background-color: #E0C068; }
.flying { background-color: #A890F0; }
.psychic { background-color: #F85888; }
.bug { background-color: #A8B820; }
.rock { background-color: #B8A038; }
.ghost { background-color: #705898; }
.dragon { background-color: #7038F8; }
.normal { background-color: #A8A878; }

.pokemon-stats {
    font-size: 0.75rem;
    text-align: left;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

/* Camera Input Styling */
.camera-input-container {
    position: relative;
    width: 100%;
    margin-top: 5px;
}

.input-camera {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.btn-camera {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    text-align: center;
    border: 2px dashed rgba(255,255,255,0.3);
}

.btn-camera:hover {
    background-color: #388E3C;
}

.btn-camera .icon {
    font-size: 1.5rem;
}

.form-hint {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .card-form {
        grid-template-columns: 1fr;
    }

    .form-group input, 
    .form-group select, 
    .btn {
        min-height: 50px; /* Touch friendly */
        font-size: 1rem;
    }

    .collection-header h2 {
        font-size: 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .tcg-card-img {
        height: 350px;
    }
}

/* Characters New Structure */
.characters-header {
    text-align: center;
    margin-bottom: 40px;
}

.character-category {
    margin-bottom: 60px;
}

.category-title {
    border-left: 8px solid var(--poke-red);
    padding-left: 15px;
    margin-bottom: 25px;
    color: var(--poke-dark-blue);
    font-size: 1rem;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.character-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.character-card:hover {
    transform: translateY(-5px);
}

.character-img-box {
    background-color: #f9f9f9;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.character-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.img-placeholder {
    color: #ccc;
    font-style: italic;
}

.character-details {
    padding: 20px;
}

.character-details h4 {
    margin-bottom: 10px;
    color: var(--poke-red);
    font-size: 0.9rem;
}

.character-details p {
    font-size: 0.85rem;
    color: #666;
}

/* Card Collection */
.card-form-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group input, .form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Holographic Styles */
.holographic-border {
    border: 3px solid transparent !important;
    background-image: linear-gradient(white, white), radial-gradient(circle at top left, #ff00ea, #00d4ff, #ffe600);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    animation: holo-shine 3s infinite alternate;
}

@keyframes holo-shine {
    from { filter: hue-rotate(0deg) brightness(1); }
    to { filter: hue-rotate(15deg) brightness(1.1); }
}

.holo-tag {
    background: linear-gradient(45deg, #f09, #3cf, #f09);
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 5px;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    animation: holo-tag-glimmer 2s infinite;
}

@keyframes holo-tag-glimmer {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tcg-card {
    background-color: var(--white);
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

.tcg-card-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #eee;
}

.tcg-card-no-img {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    color: #999;
    font-style: italic;
}

.tcg-card-info {
    padding: 15px;
}

.tcg-card-info h4 {
    margin-bottom: 10px;
}

.btn-delete {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10px;
    line-height: 1.2;
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
}

.card-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.btn-edit,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--poke-blue);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 10px;
    font: inherit;
    line-height: 1.2;
    min-height: 31px;
}

.btn-edit:hover,
.btn-secondary:hover {
    background-color: var(--poke-dark-blue);
}

@media (max-width: 600px) {
    .character-grid {
        grid-template-columns: 1fr;
    }
}
