/* Shared styles for all pages */
:root {
    --sport-primary: #2563eb;
    --sport-secondary: #10b981;
    --sport-accent: #f59e0b;
    --bg-primary: #f8fafc;
    --bg-secondary: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --card-bg: #ffffff;
    --border-color: #cbd5e1;
}

body {
    background: linear-gradient(135deg, #f0f9ff 0%, #b2ddf9 50%, #a4d0fd 100%);
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
}

/* Navigation styling */
.navbar {
    background: linear-gradient(135deg, var(--text-primary) 0%, #0f172a 100%) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
}

.navbar-brand:hover {
    color: var(--sport-secondary) !important;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--sport-secondary) !important;
}

.nav-link.active {
    color: var(--sport-secondary) !important;
    font-weight: 600;
}

.flex-grow-1 {
    flex: 1 0 auto;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    background: var(--card-bg);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.info-card {
    background: var(--card-bg);
    overflow: hidden;
}

.info-card-header {
    margin-bottom: 20px;
}

.info-card-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.info-card-accent {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--sport-primary), var(--sport-secondary));
    border-radius: 2px;
    margin-bottom: 15px;
}

.info-card-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.info-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card-list-item {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    transition: color 0.2s ease;
}

.info-card-list-item:hover {
    color: var(--text-primary);
}

.list-marker {
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--sport-primary), var(--sport-secondary));
    border-radius: 50%;
    display: inline-block;
}

/* Hero section for index page */
.hero-section {
    background: linear-gradient(135deg, var(--sport-primary) 0%, var(--sport-secondary) 100%);
    border-radius: 20px;
    padding: 60px 30px;
    margin: 50px 0;
    text-align: center;
    color: white;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.3);
}

.hero-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-title span {
    color: white;
}

.hero-text {
    color: white;
    opacity: 0.95;
}

.info-cards {
    margin-bottom: 30px;
}

/* Latest Activities Section */
.latest-activities-card {
    background: var(--card-bg);
}

.latest-activities-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    max-height: 280px;
    overflow-y: auto;
}

.latest-activities-list::-webkit-scrollbar {
    width: 6px;
}

.latest-activities-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.latest-activities-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.latest-activities-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.latest-activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.latest-activity-item:last-child {
    border-bottom: none;
}

.latest-activity-item:hover {
    background-color: rgba(37, 99, 235, 0.05);
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 6px;
}

.activity-name {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
    padding-right: 15px;
}

.activity-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.see-more-link {
    color: var(--sport-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.see-more-link:hover {
    color: var(--sport-secondary);
    gap: 12px;
}

.see-more-link i {
    transition: transform 0.3s ease;
}

.see-more-link:hover i {
    transform: translateX(4px);
}

/* WordPress Post Content Styling */
.wp-post-card {
    background: var(--card-bg);
}

.wp-post-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.wp-post-content {
    overflow-y: auto;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    max-height: 280px;
}

.wp-post-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wp-post-content::-webkit-scrollbar {
    width: 6px;
}

.wp-post-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.wp-post-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.wp-post-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.wp-post-content img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
}

.wp-post-content p {
    margin-bottom: 12px;
}

.wp-post-content h1,
.wp-post-content h2,
.wp-post-content h3,
.wp-post-content h4 {
    color: var(--text-primary);
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

.wp-post-content a {
    color: var(--sport-primary);
    text-decoration: none;
}

.wp-post-content a:hover {
    color: var(--sport-secondary);
    text-decoration: underline;
}

/* WordPress Promo Card Styling */
.wp-promo-card {
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.promo-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--sport-primary), var(--sport-secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.wp-promo-content {
    overflow-y: auto;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 240px;
    font-size: 0.95rem;
}

.wp-promo-content::-webkit-scrollbar {
    width: 6px;
}

.wp-promo-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.wp-promo-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.wp-promo-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.wp-promo-content img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin: 10px 0 15px 0;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wp-promo-content p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.wp-promo-content p:last-child {
    margin-bottom: 0;
}

.wp-promo-content strong,
.wp-promo-content b {
    color: var(--text-primary);
    font-weight: 600;
}

.wp-promo-content h1,
.wp-promo-content h2,
.wp-promo-content h3,
.wp-promo-content h4 {
    color: var(--text-primary);
    margin-top: 10px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.wp-promo-content a {
    color: var(--sport-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wp-promo-content a:hover {
    color: var(--sport-secondary);
    gap: 8px;
}

.wp-promo-content a::after {
    content: '→';
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.wp-promo-content a:hover::after {
    transform: translateX(3px);
}

.wp-promo-content ul,
.wp-promo-content ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.wp-promo-content li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.info-card-title {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.how-it-works-card {
    background: var(--card-bg);
}

.how-it-works-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.steps-row {
    margin-top: 30px;
}

.step-item {
    padding: 20px 15px;
}

.step-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.step-item p {
    color: var(--text-secondary);
}

.feature-icon {
    font-size: 3rem;
    color: var(--sport-primary);
    margin-bottom: 20px;
}

.btn-sport {
    background: linear-gradient(135deg, var(--sport-primary), var(--sport-secondary));
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.btn-sport:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    opacity: 0.9;
}

.info-section {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

/* Rating stars styling */
.rating-stars {
    font-size: 1rem;
}

.rating-stars .star,
.star {
    color: #cbd5e1;
}

.rating-stars .star.filled,
.star.filled,
.star.active {
    color: var(--sport-accent);
}

.star {
    cursor: pointer;
    transition: color 0.2s ease;
}

.star:hover {
    color: var(--sport-accent);
}

/* Form styling */
.form-control:focus {
    border-color: var(--sport-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
}

/* Loading and message states */
.loading {
    text-align: center;
    color: #666;
}

.alert {
    border-radius: 10px;
}

/* Text rotation animation */
#rotating-text {
    display: inline-block;
    min-width: 350px;
    width: 350px;
    text-align: left;
    color: #fde047;
    position: relative;
    white-space: nowrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.fade-out {
    animation: fadeOut 0.5s ease-out;
}

/* Footer styles */
.footer {
    background: var(--text-primary);
    color: #f1f5f9;
    margin-top: 50px;
    flex-shrink: 0;
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-text {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.footer-link:hover {
    color: var(--sport-secondary);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 0.85rem;
}

.error-container {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.error-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}
.error-icon {
    font-size: 5rem;
    color: #ef4444;
    margin-bottom: 30px;
}

/* Bootstrap color overrides for consistency */
.bg-primary {
    background-color: #2563eb !important;
}

.text-primary {
    color: #2563eb !important;
}

.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
}

.btn-secondary {
    background-color: #64748b;
    border-color: #64748b;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #475569;
    border-color: #475569;
    color: #ffffff;
}

.btn-outline-secondary {
    color: #64748b;
    border-color: #cbd5e1;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #475569;
}

.bg-success {
    background-color: #10b981 !important;
}

.text-success {
    color: #10b981 !important;
}

.bg-warning {
    background-color: #f59e0b !important;
}

.text-warning {
    color: #f59e0b !important;
}

.bg-danger {
    background-color: #ef4444 !important;
}

.text-danger {
    color: #ef4444 !important;
}

.bg-info {
    background-color: #06b6d4 !important;
}

.text-info {
    color: #06b6d4 !important;
}

.bg-secondary {
    background-color: #64748b !important;
}

.text-secondary {
    color: #64748b !important;
}

.bg-dark {
    background-color: #1e293b !important;
}

.alert-info {
    background-color: #dbeafe;
    border-color: #bfdbfe;
    color: #1e40af;
}

.alert-success {
    background-color: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.alert-danger {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-primary);
}

.card-header.bg-primary {
    background-color: #2563eb !important;
    color: white !important;
}

.card-header.bg-success {
    background-color: #10b981 !important;
    color: white !important;
}

.card-header.bg-warning {
    background-color: #f59e0b !important;
    color: white !important;
}

.card-header.bg-info {
    background-color: #06b6d4 !important;
    color: white !important;
}

.card-header.bg-dark {
    background-color: #1e293b !important;
    color: white !important;
}

.text-muted {
    color: #64748b !important;
}

/* Icon sizes */
.icon-large {
    font-size: 3rem;
}

.icon-color-muted {
    color: #6c757d;
}

/* Hidden elements (for JavaScript toggle) */
.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
        margin: 30px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-sport {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .latest-activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .activity-date {
        font-size: 0.85rem;
    }
    
    .latest-activities-list {
        max-height: 240px;
    }
    
    .wp-post-content {
        max-height: 240px;
    }
    
    .wp-post-content img {
        max-height: 150px;
    }
    
    .wp-promo-content {
        max-height: 200px;
    }
    
    .wp-promo-content img {
        max-height: 130px;
    }
    
    .wp-post-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 30px 15px;
        margin: 20px 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .info-section {
        padding: 20px;
    }
    
    .activity-type-badge, .price-tag {
        font-size: 0.8em;
        padding: 6px 12px;
        margin-bottom: 5px;
        display: inline-block;
    }
    
    .latest-activities-list {
        max-height: 200px;
    }
    
    .wp-post-content {
        max-height: 200px;
    }
    
    .wp-post-content img {
        max-height: 120px;
    }
    
    .wp-promo-content {
        max-height: 180px;
    }
    
    .wp-promo-content img {
        max-height: 100px;
    }
    
    .promo-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
    
    .card-header h5 {
        margin-bottom: 8px;
    }
    
    .activity-name {
        font-size: 0.95rem;
    }
    
    .wp-post-title {
        font-size: 1.25rem;
    }
}
    .wp-post-title {
        font-size: 1.25rem;
    }
}

#viewTabs {
    margin-bottom: 0;
}