/*
Theme Name: TIP 13
Theme URI: https://tips13.it.com
Description: Tema para mostrar resultados del TIP 13 y descargar plantillas
Version: 1.0
Author: Tips13
Text Domain: tip13
*/

:root {
    --primary: #1a5f2a;
    --secondary: #f4c430;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --success: #28a745;
    --danger: #dc3545;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
}

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

/* Header */
.site-header {
    background: rgba(0,0,0,0.3);
    padding: 20px 0;
    border-bottom: 3px solid var(--secondary);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary);
    text-decoration: none;
}

.logo span {
    color: #fff;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Matches Table */
.matches-section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--secondary);
}

.matches-table {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    overflow: hidden;
    border-collapse: collapse;
}

.matches-table th {
    background: var(--primary);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.matches-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.matches-table tr:hover {
    background: rgba(255,255,255,0.05);
}

.match-number {
    background: var(--secondary);
    color: var(--dark);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.team-vs {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vs {
    color: var(--secondary);
    font-weight: bold;
}

.result-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.result-1 { background: #28a745; }
.result-x { background: #ffc107; color: #000; }
.result-2 { background: #dc3545; }
.result-pending { background: #6c757d; }

/* Downloads Section */
.downloads-section {
    padding: 60px 0;
    background: rgba(0,0,0,0.2);
    margin: 40px 0;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.download-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.download-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.download-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.download-card p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-primary:hover {
    background: #e0b000;
    transform: scale(1.05);
}

.btn-pdf {
    background: #dc3545;
    color: #fff;
}

.btn-excel {
    background: #28a745;
    color: #fff;
}

/* Winners Section */
.winners-section {
    padding: 60px 0;
}

.winners-card {
    background: linear-gradient(135deg, var(--primary), #0d3d17);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    border: 2px solid var(--secondary);
}

.winners-card h2 {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 20px;
}

.prize-amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary);
    margin: 20px 0;
}

.winners-count {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Footer */
.site-footer {
    background: rgba(0,0,0,0.5);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.site-footer p {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .matches-table {
        font-size: 0.9rem;
    }

    .matches-table th,
    .matches-table td {
        padding: 10px;
    }
}

/* Update indicator */
.update-time {
    text-align: center;
    padding: 15px;
    background: rgba(40, 167, 69, 0.2);
    border-radius: 10px;
    margin-bottom: 30px;
}

.update-time i {
    color: var(--success);
    margin-right: 10px;
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
