/* Custom styles for Torneo di Padel */
:root {
    --primary-color: var(--tdp-color-primary-500, #007bff);
    --secondary-color: var(--tdp-color-neutral-600, #6c757d);
    --accent-color: var(--tdp-color-accent-orange-500, #fd7e14);
    --success-color: var(--tdp-color-success, #28a745);
    --info-color: var(--tdp-color-info, #17a2b8);
    --warning-color: var(--tdp-color-warning, #ffc107);
    --danger-color: var(--tdp-color-danger, #dc3545);
    --light-color: var(--tdp-color-neutral-50, #f8f9fa);
    --dark-color: var(--tdp-color-neutral-800, #343a40);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tdp-color-primary-700, var(--accent-color)) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.search-form {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: var(--tdp-radius-card, 15px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.search-form .form-control,
.search-form .form-select {
    border-radius: 10px;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    border-radius: var(--tdp-radius-button, 10px);
    font-weight: 600;
    transition: all var(--tdp-transition-normal, 0.3s ease);
}

.btn-accent:hover {
    background-color: #e06900;
    border-color: #e06900;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.3);
}

/* Category Cards */
.category-card {
    background: white;
    padding: 40px 20px;
    border-radius: var(--tdp-radius-card, 15px);
    text-align: center;
    box-shadow: var(--tdp-shadow-soft, 0 5px 25px rgba(0,0,0,0.08));
    transition: all var(--tdp-transition-normal, 0.3s ease);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--tdp-gradient-stat-card, linear-gradient(135deg, var(--primary-color), var(--accent-color)));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
}

.category-card h5 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.category-card p {
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Tournament Cards */
.tournament-card {
    border: none;
    border-radius: var(--tdp-radius-card, 15px);
    box-shadow: var(--tdp-shadow-soft, 0 5px 25px rgba(0,0,0,0.08));
    transition: all var(--tdp-transition-normal, 0.3s ease);
    overflow: hidden;
}

.tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.tournament-card .card-body {
    padding: 25px;
}

.tournament-card .card-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating .fas,
.rating .far {
    color: #ffc107;
    font-size: 12px;
}

.rating small {
    margin-left: 5px;
    font-weight: 600;
}

.badge {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Club Cards */
.club-card {
    border: none;
    border-radius: var(--tdp-radius-card, 15px);
    box-shadow: var(--tdp-shadow-soft, 0 5px 25px rgba(0,0,0,0.08));
    transition: all var(--tdp-transition-normal, 0.3s ease);
    height: 100%;
}

.club-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.club-card .card-body {
    padding: 25px 20px;
}

.club-card .category-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin: 0 auto 15px;
}

.club-card h6 {
    font-weight: 700;
    margin-bottom: 5px;
}

/* --- Club Custom Restyling SOFT --- */
.club-section {
  padding: 3.5rem 2rem 3.5rem 2rem;
  margin-bottom: 3.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px 0 rgba(44,90,160,0.06);
  background: #fcfcfd;
}
.club-section.bg-alt {
  background: #f4f6fa;
}
.club-section-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 2.2rem;
  padding-left: 0.5rem;
  border-left: 5px solid #d35924;
  color: #2c5aa0;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
}
.club-section-title i {
  font-size: 1.2rem;
  margin-right: 0.6rem;
  color: #00bec5;
}
.club-section-separator {
  height: 2px;
  background: linear-gradient(90deg, #d35924 0%, #00bec5 100%);
  border: none;
  margin: 2.5rem 0 2.5rem 0;
  border-radius: 2px;
}
.club-lesson-card {
  border: none;
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px 0 rgba(44,90,160,0.07);
  background: #fff;
  margin-bottom: 2.2rem;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
  padding: 1.2rem 1.3rem 1.1rem 1.3rem;
}
.club-lesson-card:hover {
  box-shadow: 0 8px 32px 0 rgba(44,90,160,0.13);
  transform: translateY(-2px) scale(1.01);
}
.club-lesson-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: #f4f6fa;
  color: #2c5aa0;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.25rem 0.9rem;
  border-radius: 1rem;
  z-index: 2;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 4px 0 rgba(44,90,160,0.07);
}
.club-lesson-icon {
  font-size: 1.5rem;
  color: #00bec5;
  margin-bottom: 0.5rem;
}
.club-instructor-card {
  border: none;
  border-radius: 1.1rem;
  background: #f8fafd;
  box-shadow: 0 2px 12px 0 rgba(44,90,160,0.07);
  margin-bottom: 2.2rem;
  transition: box-shadow 0.2s, transform 0.2s;
  padding: 1.1rem 1.2rem 1.1rem 1.2rem;
}
.club-instructor-card:hover {
  box-shadow: 0 8px 32px 0 rgba(44,90,160,0.13);
  transform: translateY(-2px) scale(1.01);
}
.club-instructor-badge {
  background: #00bec5;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.2rem 0.7rem;
  border-radius: 1rem;
  margin-left: 0.5rem;
}
.club-instructor-social {
  margin-left: auto;
  display: flex;
  gap: 0.4rem;
}
.club-instructor-social a {
  color: #00bec5;
  font-size: 1.05rem;
  transition: color 0.2s;
  opacity: 0.7;
}
.club-instructor-social a:hover {
  color: #d35924;
  opacity: 1;
}
.club-badge-type {
  background: #e9ecef;
  color: #2c5aa0;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.2rem 0.7rem;
  border-radius: 1rem;
  margin-left: 0.5rem;
  box-shadow: 0 1px 4px 0 rgba(44,90,160,0.07);
}
.club-badge-type.group { background: #00bec5; color: #fff; }
.club-badge-type.clinic { background: #f7b731; color: #fff; }
.club-badge-type.individual { background: #6c63ff; color: #fff; }
.club-badge-type.default { background: #bbb; color: #fff; }
.iscrizione-feedback {
  min-height: 1.2em;
  font-weight: 400;
  font-size: 0.97em;
  color: #2c5aa0;
  margin-top: 0.3em;
}
.club-lesson-card .card-body, .club-instructor-card .card-body {
  padding: 0;
}
.club-lesson-card .mb-2, .club-instructor-card .mb-1, .club-instructor-card .mb-0 {
  margin-bottom: 0.7rem !important;
}
.club-lesson-card .mb-2:last-child {
  margin-bottom: 0 !important;
}
.club-instructor-card img.rounded-circle {
  border: 2px solid #e9ecef;
  background: #fff;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Sections */
section {
    position: relative;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .search-form {
        padding: 20px;
    }
    
    .category-card {
        padding: 30px 15px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card,
.tournament-card,
.club-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Navbar improvements */
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

/* Footer improvements */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #495057 100%);
    color: white;
}

footer h5 {
    color: white;
    font-weight: 700;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
}

/* Authentication links in header */
.auth-links {
    gap: 10px;
}

.auth-links .login-btn,
.auth-links .register-btn {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.auth-links .login-btn {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.auth-links .login-btn:hover {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-links .register-btn {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.auth-links .register-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.auth-links i {
    margin-right: 5px;
}
