{% extends "tg_layout.html" %} {% block title %}События - reZwift{% endblock %} {% block extra_styles %} .event-card { background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: 14px; padding: 14px; margin-bottom: 10px; cursor: pointer; transition: all 0.2s ease; } .event-card:active { transform: scale(0.98); border-color: var(--orange); } .event-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; } .event-image { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; background: linear-gradient(135deg, var(--orange), #FF8C00); flex-shrink: 0; } .event-image-placeholder { width: 60px; height: 60px; border-radius: 10px; background: linear-gradient(135deg, rgba(255,107,0,0.2), rgba(255,107,0,0.1)); display: flex; align-items: center; justify-content: center; color: var(--orange); font-size: 1.5rem; flex-shrink: 0; } .event-info { flex: 1; min-width: 0; } .event-type { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; } .type-race { background: rgba(235, 51, 73, 0.2); color: #ff6b6b; } .type-group { background: rgba(76, 201, 240, 0.2); color: #4cc9f0; } .type-workout { background: rgba(56, 239, 125, 0.2); color: #38ef7d; } .event-name { font-size: 0.95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .event-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.72rem; color: var(--text-muted); margin-top: 8px; } .event-meta span { display: flex; align-items: center; gap: 4px; } .create-btn { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #FF6B00, #FF8C00); border: none; color: white; display: flex; align-items: center; justify-content: center; text-decoration: none; margin-left: auto; } /* Modal */ .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); display: none; justify-content: center; align-items: flex-end; z-index: 1000; } .modal { background: var(--bg-card); border: 2px solid rgba(255, 107, 0, 0.3); border-bottom: none; border-radius: 20px 20px 0 0; padding: 16px; width: 100%; max-height: 85vh; overflow-y: auto; animation: slideUp 0.3s ease; } @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } } .modal-handle { width: 40px; height: 4px; background: rgba(255, 255, 255, 0.2); border-radius: 2px; margin: 0 auto 14px; } .modal-image { width: 100%; height: 160px; border-radius: 12px; object-fit: cover; margin-bottom: 14px; } .modal-image-placeholder { width: 100%; height: 140px; border-radius: 12px; background: linear-gradient(135deg, rgba(255,107,0,0.15), rgba(255,107,0,0.05)); display: flex; align-items: center; justify-content: center; color: var(--orange); font-size: 3rem; margin-bottom: 14px; } .modal-title { font-size: 1.2rem; font-weight: 800; color: var(--gold); margin-bottom: 6px; } .modal-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.4; } .detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; } .detail-item { background: rgba(255, 107, 0, 0.08); border-radius: 10px; padding: 10px; text-align: center; } .detail-value { font-size: 1rem; font-weight: 800; color: var(--gold); } .detail-label { font-size: 0.68rem; color: var(--text-muted); } .route-info { background: rgba(76, 201, 240, 0.1); border: 1px solid rgba(76, 201, 240, 0.2); border-radius: 10px; padding: 12px; margin-bottom: 14px; } .route-name { font-weight: 700; font-size: 0.9rem; color: #4cc9f0; margin-bottom: 4px; } .route-world { font-size: 0.75rem; color: var(--text-muted); } .participants-section { margin-bottom: 14px; } .participants-title { font-size: 0.8rem; font-weight: 700; color: var(--orange); margin-bottom: 8px; } .participants-count { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 6px; } .participants-list { display: flex; flex-wrap: wrap; gap: 6px; } .participant-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #4361ee, #3a0ca3); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; color: white; } .btn-register { width: 100%; padding: 14px; border-radius: 12px; border: none; background: linear-gradient(135deg, var(--orange), #FF8C00); color: white; font-weight: 700; font-size: 0.95rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; } .btn-register:active { transform: scale(0.98); } .btn-register.registered { background: rgba(56, 239, 125, 0.2); color: #38ef7d; border: 2px solid #38ef7d; } .btn-register:disabled { opacity: 0.6; cursor: not-allowed; } .btn-close { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid rgba(255, 107, 0, 0.3); background: transparent; color: var(--orange); font-weight: 600; font-size: 0.85rem; cursor: pointer; } /* Confirm dialog */ .confirm-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); display: none; justify-content: center; align-items: center; z-index: 2000; padding: 20px; } .confirm-box { background: var(--bg-card); border: 2px solid var(--orange); border-radius: 16px; padding: 20px; max-width: 320px; width: 100%; text-align: center; } .confirm-title { font-size: 1.1rem; font-weight: 700; color: var(--gold); margin-bottom: 10px; } .confirm-text { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; } .confirm-buttons { display: flex; gap: 10px; } .confirm-btn { flex: 1; padding: 12px; border-radius: 10px; font-weight: 600; font-size: 0.85rem; cursor: pointer; border: none; } .confirm-btn.primary { background: linear-gradient(135deg, var(--orange), #FF8C00); color: white; } .confirm-btn.secondary { background: rgba(255, 107, 0, 0.1); border: 1px solid rgba(255, 107, 0, 0.3); color: var(--orange); } {% endblock %} {% block content %}