/* Public Recordings Page Styles */

/* Hero Section - Uses unified page background from styles.css */
.public-recordings-hero {
    min-height: 50vh;
    padding-top: 120px;
    padding-bottom: var(--spacing-2xl);
    position: relative;
    display: flex;
    align-items: center;
    background: transparent;
}

/* Hide hero background elements - unified page background is used instead */
.public-recordings-hero .hero-background {
    display: none;
}

.public-recordings-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.public-recordings-hero .hero-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--primary-light);
    margin-bottom: var(--spacing-lg);
    animation: fadeInDown 0.8s ease;
}

.public-recordings-hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease;
    line-height: 1.1;
}

.public-recordings-hero .hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Recordings Section - Uses unified page background from styles.css */
.recordings-section {
    padding: var(--spacing-2xl) 0;
    background: transparent;
    min-height: 60vh;
}

/* Search Container */
.search-container {
    margin-bottom: var(--spacing-xl);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--surface) 0%, rgba(45, 55, 72, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 16px;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-icon {
    color: var(--text-tertiary);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--primary-light);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 14px 12px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-clear-btn {
    background: rgba(99, 102, 241, 0.1);
    border: none;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

.search-results-count {
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    display: inline-block;
}

.search-results-count span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.search-results-count .highlight {
    color: var(--primary-light);
    font-weight: 600;
}

/* No Results State */
.no-results-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    text-align: center;
    gap: var(--spacing-md);
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.no-results-icon svg {
    color: var(--primary-light);
    opacity: 0.6;
}

.no-results-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.no-results-state p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0;
}

.btn-clear-search {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: transparent;
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--spacing-sm);
}

.btn-clear-search:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .search-input-wrapper {
        padding: 0 12px;
    }
    
    .search-input {
        padding: 12px 10px;
        font-size: 0.95rem;
    }
}

/* Recordings Grid */
.recordings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Recording Card */
.recording-card {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(45, 55, 72, 0.8) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.recording-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.recording-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 
        0 15px 30px rgba(99, 102, 241, 0.15),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.recording-card:hover::before {
    transform: scaleX(1);
}

.recording-card:active {
    transform: translateY(-3px) scale(1.01);
}

/* Score Badge */
.score-badge {
    width: 60px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.score-badge.has-score {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.score-badge.no-score {
    background: rgba(99, 102, 241, 0.2);
    border: 2px dashed rgba(99, 102, 241, 0.4);
}

.score-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.score-badge.no-score .score-value {
    color: var(--text-tertiary);
    text-shadow: none;
}

/* Card Content */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.card-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.card-movement {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 0;
    font-style: italic;
}

/* Card Arrow */
.card-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.recording-card:hover .card-arrow {
    color: var(--primary-light);
    transform: translateX(4px);
}

/* Skeleton Loading Cards */
.skeleton-card {
    pointer-events: none;
    cursor: default;
}

.skeleton-card:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.skeleton-badge,
.skeleton-title,
.skeleton-text {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton-badge {
    width: 60px;
    height: 80px;
    border-radius: 8px;
}

.skeleton-title {
    height: 20px;
    width: 70%;
    margin-bottom: 8px;
}

.skeleton-text {
    height: 16px;
    width: 50%;
}

.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Loading Container */
.loading-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    gap: var(--spacing-md);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-container p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    text-align: center;
    gap: var(--spacing-md);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.empty-icon svg {
    color: var(--primary-light);
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.empty-state p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0;
}

/* Error State */
.error-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    text-align: center;
    gap: var(--spacing-md);
}

.error-icon {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.error-icon svg {
    color: var(--error);
    opacity: 0.8;
}

.error-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.error-state p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0;
}

.btn-retry {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-retry:active {
    transform: translateY(0);
}

.btn-retry svg {
    width: 20px;
    height: 20px;
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--surface) 0%, rgba(45, 55, 72, 0.8) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-load-more:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.btn-load-more:active:not(:disabled) {
    transform: translateY(0);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-load-more svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-load-more:hover:not(:disabled) svg {
    transform: translateY(3px);
}

/* Navigation Active State */
.nav-link.active {
    color: var(--primary-light);
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .recordings-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .public-recordings-hero {
        min-height: 40vh;
        padding-top: 100px;
    }
    
    .public-recordings-hero .hero-title {
        font-size: 2rem;
    }
    
    .public-recordings-hero .hero-description {
        font-size: 1rem;
    }
    
    .recordings-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .recording-card {
        padding: 12px;
    }
    
    .score-badge {
        width: 50px;
        height: 70px;
    }
    
    .score-value {
        font-size: 24px;
    }
    
    .card-title {
        font-size: 15px;
    }
    
    .card-date {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .recordings-section {
        padding: var(--spacing-lg) 0;
    }
    
    .recording-card {
        gap: 12px;
    }
    
    .btn-load-more {
        width: 100%;
        justify-content: center;
    }
}


