/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    min-height: 100vh;
    line-height: 1.6;
}

.public-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header/Hero */
.hero {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Tarjeta de búsqueda */
.search-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    text-align: center;
}

.search-card h2 {
    color: #4f46e5;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.input-group {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 15px;
}

@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }
}

#searchInput {
    flex: 1;
    padding: 18px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

#searchInput:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.btn-search {
    background: linear-gradient(to right, #10b981, #059669);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-search:hover {
    background: linear-gradient(to right, #059669, #047857);
    transform: translateY(-2px);
}

.input-hint {
    color: #64748b;
    font-size: 0.95rem;
}

/* Contenedores de resultado */
.result-container, .error-container, .info-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.player-badge {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    color: #78350f;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
}

/* Visualización de la carta */
.card-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 900px) {
    .card-display {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

#cardImage {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.5s;
}

#cardImage:hover {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-info p {
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.status-valid {
    color: #10b981;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-download {
    background: linear-gradient(to right, #3b82f6, #1d4ed8);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    flex: 1;
    min-width: 200px;
    transition: all 0.3s;
}

.btn-download:hover {
    background: linear-gradient(to right, #1d4ed8, #1e40af);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 200px;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* Estados de error e info */
.error-container {
    text-align: center;
    border-left: 6px solid #ef4444;
}

.error-container h3 {
    color: #dc2626;
    margin-bottom: 15px;
}

#errorMessage {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-container h3 {
    color: #4f46e5;
    margin-bottom: 20px;
}

.instructions {
    padding-left: 25px;
    margin-bottom: 25px;
}

.instructions li {
    margin-bottom: 10px;
    padding-left: 10px;
}

.notice {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    border-radius: 10px;
    color: #78350f;
}

/* Footer */
.page-footer {
    text-align: center;
    padding: 30px;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}