/* ===== STILI DI BASE PER TUTTE LE PAGINE ===== */
body {
    background: url('/img/fondo.png') repeat; 
    background-color: #f4f4f4;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== STILI PER PAGINE PUBBLICHE SCHEDINE ===== */

/* Container per pagina pubblica */
.public-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Card principale */
.public-bet-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.public-bet-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
}

/* Header */
.public-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.public-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.public-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.public-username {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.public-date {
    color: #999;
    font-size: 13px;
}

/* Status badge */
.public-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.public-status-active {
    background: #3b82f620;
    color: #3b82f6;
}

.public-status-won {
    background: #22c55e20;
    color: #22c55e;
}

.public-status-lost {
    background: #ef444420;
    color: #ef4444;
}

.public-status-unknown {
    background: #f0f0f0;
    color: #666;
}

/* Quota */
.public-odds-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 25px;
}

.public-odds-label {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.public-odds-value {
    font-size: 48px;
    font-weight: bold;
    color: #22c55e;
    line-height: 1;
}

/* Sezione titolo */
.public-section-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Eventi */
.public-event-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #22c55e;
}

.public-competition-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.public-event-match {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.public-event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.public-event-type {
    color: #3b82f6;
    font-weight: 500;
}

.public-event-selection {
    color: #22c55e;
    font-weight: 600;
}

.public-event-odds {
    color: #FFD700;
    font-weight: bold;
}

/* CTA Section */
.public-cta-section {
    background: linear-gradient(135deg, #667eea20, #764ba220);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    margin-top: 25px;
}

.public-cta-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.public-cta-text {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.public-button-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.public-button {
    display: inline-block;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 180px;
    cursor: pointer;
    border: none;
}

.public-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.public-button-primary {
    background: #22c55e;
    color: white;
}

.public-button-secondary {
    background: white;
    color: #22c55e;
    border: 2px solid #22c55e;
}

.public-ref-message {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.public-ref-message strong {
    color: #22c55e;
}

/* Footer pubblico */
.public-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    color: #999;
    font-size: 13px;
}

.public-footer a {
    color: #22c55e;
    text-decoration: none;
    margin: 0 5px;
}

.public-footer a:hover {
    text-decoration: underline;
}

.public-footer-note {
    margin-top: 10px;
    font-size: 11px;
}

/* Error box pubblico */
.public-error-box {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #c00;
    max-width: 600px;
    margin: 0 auto;
}

.public-error-box h2 {
    margin-bottom: 10px;
}

.public-error-box .public-button {
    margin-top: 20px;
    display: inline-block;
}

/* Responsive */
@media (max-width: 480px) {
    .public-bet-content {
        padding: 15px;
    }
    
    .public-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .public-odds-value {
        font-size: 36px;
    }
    
    .public-button {
        width: 100%;
        text-align: center;
    }
    
    .public-event-details {
        flex-direction: column;
        gap: 5px;
    }
}

/* ===== STILI PER LA HOME PAGE (index.php) ===== */
.home-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* SFONDO CON OVERLAY (come nell'app) */
.home-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.home-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.home-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

/* CONTENUTO PRINCIPALE */
.home-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* CARD (come nell'app) */
.home-card {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 30px 25px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

/* LOGO */
.home-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

/* TITOLO */
.home-title {
    color: #22c55e;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.home-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
    margin: 15px 0 20px;
}

/* TESTO */
.home-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* BOTTONI (come nell'app) */
.home-button-container {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.home-button {
    display: block;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}

.home-button-primary {
    background-color: #22c55e;
    color: white;
    border: 1px solid transparent;
}

.home-button-primary:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.home-button-secondary {
    background-color: transparent;
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.home-button-secondary:hover {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

/* FOOTER (come nell'app) */
.home-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.home-footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin: 0 5px;
}

.home-footer a:hover {
    color: #22c55e;
}