/* Success Stories Styles */

/* ============================================
   List Page
   ============================================ */
.success-stories-page {
    padding-bottom: var(--space-3xl);
}

.stories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.stories-filters {
    margin-bottom: var(--space-2xl);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.story-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-primary);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.story-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform var(--transition-slow);
}

.story-card:hover .story-image {
    transform: scale(1.05);
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.story-category {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 1;
}

.story-content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-sm);
}

.story-meta .separator {
    color: var(--text-disabled);
}

.story-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.story-excerpt {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Details Page
   ============================================ */
.story-details-page {
    padding-bottom: var(--space-3xl);
}

.story-hero {
    position: relative;
    height: 500px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: var(--space-2xl);
    display: flex;
    align-items: flex-end;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: var(--space-3xl);
    width: 100%;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    max-width: 800px;
}

/* Gallery Styles */
.gallery-title {
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-xl);
}

.hero-meta {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
}

.meta-item i {
    color: var(--primary);
}

.story-content-card {
    padding: var(--space-3xl);
}

.lead-text {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    font-weight: var(--font-weight-medium);
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: var(--space-2xl) 0 var(--space-md);
}

.story-text p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.highlight-block {
    background: rgba(14, 165, 233, 0.1);
    border-left: 4px solid var(--primary);
    padding: var(--space-xl);
    margin: var(--space-2xl) 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.highlight-icon {
    font-size: var(--font-size-3xl);
    color: var(--primary);
    margin-bottom: var(--space-md);
    display: block;
}

.highlight-text {
    font-size: var(--font-size-xl);
    font-style: italic;
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    margin: 0;
}

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-primary);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

/* ============================================
   Create Page
   ============================================ */
.upload-zone {
    border: 2px dashed var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: rgba(15, 20, 25, 0.3);
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

.upload-icon {
    font-size: var(--font-size-4xl);
    color: var(--text-tertiary);
    margin-bottom: var(--space-md);
    display: block;
}

.upload-text {
    color: var(--text-secondary);
    margin: 0;
}

.profile-upload-zone {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 2px dashed var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 20, 25, 0.3);
    transition: all var(--transition-base);
}

.profile-upload-zone:hover {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

.profile-placeholder {
    font-size: var(--font-size-4xl);
    color: var(--text-tertiary);
}

/* Pagination - Now using unified component from components/pagination.css */

/* Custom Select Component */
.custom-select {
    position: relative;
    width: 100%;
    z-index: 100;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    background: rgba(30, 41, 59, 0.6);
    cursor: pointer;
    transition: all var(--transition-base);
    user-select: none;
}

.custom-select-trigger:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--primary);
}

.custom-select-trigger svg {
    color: var(--text-secondary);
    transition: transform var(--transition-base);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.98);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.custom-select.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.custom-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.custom-option .option-check {
    opacity: 0;
    flex-shrink: 0;
}

.custom-option.selected {
    background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
    color: white;
    font-weight: 600;
}

.custom-option.selected .option-check {
    opacity: 1;
    visibility: visible;
}

.custom-option:not(.selected):hover {
    background: rgba(14, 165, 233, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-content {
        padding: var(--space-xl);
    }

    .story-hero {
        height: 400px;
    }

    .story-content-card {
        padding: var(--space-xl);
    }
}

/* Page Header Styles */
.story-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.header-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.header-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.header-separator {
    width: 4px;
    height: 4px;
    background-color: var(--text-tertiary);
    border-radius: 50%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-action-header {
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-secondary-header {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-primary);
}

.btn-secondary-header:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

.btn-icon-only {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    transition: all 0.2s;
    margin-right: 1rem;
    text-decoration: none;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    transform: translateX(-2px);
}

@media (max-width: 768px) {
    .story-page-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .header-profile {
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}
.stories-filters{
    color:var(--sportex-text-muted); ;
}
.stories-filters label{
    margin-bottom: 10px;
}