/* style.css - ESTILOS COMPLETOS PARA JUGADORES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', 'Open Sans', sans-serif;
}

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #7c3aed;
    --accent: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --card-bg: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --radius: 16px;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark);
    min-height: 100vh;
    line-height: 1.6;
}

.public-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 50px 30px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 20s linear infinite;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.hero-content h1 i {
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.online-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== TARJETA DE BÚSQUEDA ===== */
.search-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    animation: slideUp 0.5s ease;
}

.search-card h2 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-card h2 i {
    color: var(--secondary);
}

.card-description {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.input-group {
    display: flex;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto 20px;
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1.3rem;
}

#searchInput {
    width: 100%;
    padding: 20px 25px 20px 60px;
    border: 3px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1.2rem;
    transition: all 0.3s;
    background: var(--light);
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    background: white;
}

.btn-search {
    background: linear-gradient(to right, var(--accent), #0da271);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.btn-search:hover {
    background: linear-gradient(to right, #0da271, #0b8c63);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.search-hints {
    margin-top: 25px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 12px;
    border-left: 4px solid var(--info);
}

.search-hints p {
    margin-bottom: 10px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-hints i {
    color: var(--info);
}

.hint {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== RESULTADO ===== */
.result-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 20px;
}

.success-badge {
    display: flex;
    align-items: center;
    gap: 15px;
}

.success-badge i {
    font-size: 2.5rem;
    color: var(--accent);
}

.success-badge h2 {
    color: var(--dark);
    font-size: 2rem;
    margin: 0;
}

.player-badge {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    color: #78350f;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.card-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 992px) {
    .card-display {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* IMAGEN */
.image-section {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
}

#cardImage {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.5s;
    min-height: 400px;
    background: linear-gradient(45deg, #f1f5f9, #e2e8f0);
}

#cardImage:hover {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
}

.image-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: 20px;
}

.image-loader i {
    font-size: 3rem;
    color: var(--primary);
}

.image-loader p {
    color: var(--dark);
    font-weight: 600;
    font-size: 1.2rem;
}

.image-actions {
    display: flex;
    gap: 15px;
}

.btn-download, .btn-share {
    flex: 1;
    padding: 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-download {
    background: linear-gradient(to right, var(--info), #2563eb);
    color: white;
    border: none;
}

.btn-download:hover {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-share {
    background: var(--light);
    color: var(--dark);
    border: 2px solid #e5e7eb;
}

.btn-share:hover {
    background: #f3f4f6;
    border-color: var(--gray);
}

/* INFORMACIÓN */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: var(--radius);
    border: 2px solid #f1f5f9;
}

.info-card h3 {
    color: var(--dark);
    margin-bottom: 25px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 40px;
    text-align: center;
}

.label {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.value {
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 600;
}

.status-valid {
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.link code {
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: var(--primary-dark);
    font-size: 0.9rem;
    word-break: break-all;
    display: block;
    margin-top: 5px;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.btn-secondary, .btn-verify {
    flex: 1;
    padding: 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-secondary {
    background: var(--light);
    color: var(--dark);
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f3f4f6;
    border-color: var(--gray);
}

.btn-verify {
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
    color: white;
}

.btn-verify:hover {
    background: linear-gradient(to right, #7c3aed, #6d28d9);
    transform: translateY(-2px);
}

/* ===== ERROR ===== */
.error-container {
    background: var(--card-bg);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    text-align: center;
    animation: shake 0.5s ease;
    border-left: 6px solid var(--danger);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-icon {
    font-size: 4rem;
    color: var(--danger);
    margin-bottom: 20px;
}

.error-container h3 {
    color: var(--danger);
    margin-bottom: 15px;
    font-size: 2rem;
}

#errorMessage {
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: var(--dark);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.suggestions {
    background: #fef2f2;
    padding: 25px;
    border-radius: 12px;
    margin: 30px auto;
    max-width: 600px;
    text-align: left;
}

.suggestions p {
    color: var(--danger);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.suggestions ul {
    list-style: none;
    padding-left: 0;
}

.suggestions li {
    margin-bottom: 10px;
    color: var(--dark);
    padding-left: 25px;
    position: relative;
}

.suggestions li::before {
    content: '•';
    color: var(--danger);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

/* ===== INFORMACIÓN ===== */
.info-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
}

.info-header h3 {
    color: var(--primary);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-update {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f9ff;
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--info);
    font-weight: 600;
}

.live-update i {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.instruction-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.step-content p {
    color: var(--gray);
    line-height: 1.5;
}

.notice {
    background: #fffbeb;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--warning);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.notice-header i {
    font-size: 1.8rem;
    color: var(--warning);
}

.notice-header h4 {
    color: #92400e;
    font-size: 1.4rem;
}

.notice p {
    color: #92400e;
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--warning);
}

/* ===== FOOTER ===== */
.page-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.footer-logo i {
    font-size: 2rem;
}

.footer-info p {
    color: var(--gray);
    text-align: center;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-status {
    display: flex;
    gap: 25px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-weight: 600;
}

.status-item i {
    color: var(--primary);
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .public-container {
        padding: 15px;
    }
    
    .hero {
        padding: 30px 20px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-card,
    .result-container,
    .error-container,
    .info-container {
        padding: 25px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-status {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .search-card h2,
    .success-badge h2 {
        font-size: 1.5rem;
    }
    
    .info-grid,
    .instructions-grid {
        grid-template-columns: 1fr;
    }
}