/* ============================================================
   ETKİNLİKLER.CSS — Ayyıldız Spor
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --etk-red:    #c1121f;
  --etk-blue:   #3b82f6;
  --etk-green:  #10b981;
  --etk-bg:     #060d1e;
  --etk-card:   #0c1425;
  --etk-border: rgba(255,255,255,0.08);
  --etk-white:  rgba(255,255,255,0.88);
  --etk-muted:  rgba(255,255,255,0.55);
  --radius:     16px;
  --transition: 0.3s ease;
}

.etk-page {
  padding: 2.5rem 0 4rem;
  min-height: 80vh;
}

/* ----- Header ----- */
.etk-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.etk-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.3rem;
}

.etk-subtitle {
  color: var(--etk-muted);
  font-size: 1rem;
  margin: 0;
}

/* ----- Legend ----- */
.etk-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--etk-card);
  border: 1px solid var(--etk-border);
  border-radius: var(--radius);
}

.etk-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--etk-white);
  font-weight: 500;
}

.etk-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.etk-legend-count {
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

/* ----- Calendar Wrapper ----- */
.etk-calendar-wrap {
  background: var(--etk-card);
  border: 1px solid var(--etk-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

/* FullCalendar Overrides */
.etk-calendar-wrap .fc {
  font-family: inherit;
}

.etk-calendar-wrap .fc-toolbar-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.etk-calendar-wrap .fc-button {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 8px;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  transition: var(--transition);
}

.etk-calendar-wrap .fc-button:hover,
.etk-calendar-wrap .fc-button-active,
.etk-calendar-wrap .fc-button:not(:disabled):active {
  background: var(--etk-red) !important;
  border-color: var(--etk-red) !important;
  box-shadow: none;
}

.etk-calendar-wrap .fc-button:focus {
  box-shadow: 0 0 0 2px rgba(193,18,31,0.4);
}

.etk-calendar-wrap .fc-daygrid-day {
  background: transparent;
}

.etk-calendar-wrap .fc-daygrid-day-number,
.etk-calendar-wrap .fc-col-header-cell-cushion {
  color: var(--etk-white);
  text-decoration: none;
  font-size: 0.85rem;
}

.etk-calendar-wrap .fc-day-today {
  background: rgba(193,18,31,0.08) !important;
}

.etk-calendar-wrap .fc-day-today .fc-daygrid-day-number {
  background: var(--etk-red);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.etk-calendar-wrap .fc-scrollgrid,
.etk-calendar-wrap .fc-scrollgrid-section > td,
.etk-calendar-wrap .fc-scrollgrid td,
.etk-calendar-wrap .fc-scrollgrid th {
  border-color: rgba(255,255,255,0.07) !important;
}

.etk-calendar-wrap .fc-list-event:hover td {
  background: rgba(255,255,255,0.04);
}

.etk-calendar-wrap .fc-list-empty {
  background: transparent;
  color: var(--etk-muted);
}

.etk-calendar-wrap .fc-list-event-title a {
  color: var(--etk-white);
  text-decoration: none;
}

.etk-calendar-wrap .fc-list-day-cushion {
  background: rgba(255,255,255,0.05) !important;
  color: var(--etk-white);
  font-size: 0.85rem;
}

.etk-calendar-wrap .fc-event {
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ----- Section Title ----- */
.etk-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--etk-red);
  display: inline-block;
}

/* ----- Upcoming List ----- */
.etk-upcoming {
  margin-top: 1rem;
}

.etk-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.etk-item {
  display: flex;
  gap: 1rem;
  background: var(--etk-card);
  border: 1px solid var(--etk-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: var(--transition);
  animation: etkFadeUp 0.4s ease both;
}

.etk-item:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

@keyframes etkFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.etk-item-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  border-left: 3px solid;
  padding-left: 0.75rem;
  gap: 0.1rem;
}

.etk-day {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.etk-month {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--etk-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.etk-item-body {
  flex: 1;
  min-width: 0;
}

.etk-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  border: 1px solid;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.etk-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--etk-white);
  margin: 0 0 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.etk-item-loc,
.etk-item-time {
  font-size: 0.82rem;
  color: var(--etk-muted);
  margin: 0.2rem 0 0;
}

/* ----- Empty State ----- */
.etk-empty {
  background: var(--etk-card);
  border: 1px solid var(--etk-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  color: var(--etk-muted);
  font-size: 0.95rem;
}

/* ----- Responsive ----- */
@media (max-width: 600px) {
  .etk-page { padding: 1.5rem 0 3rem; }
  .etk-header { flex-direction: column; }
  .etk-calendar-wrap { padding: 1rem 0.75rem; }
  .etk-list { grid-template-columns: 1fr; }
}
