:root {
    --primary-color: #121212;
    --accent-color: #f7931a; /* Bitcoin orange */
    --secondary-accent: #3498db; /* For some UI elements */
    --text-color: #f5f5f5;
    --card-bg: #1e1e1e;
    --card-border: #2a2a2a;
    --hover-color: #252525;
    --gradient-start: #1a1a1a;
    --gradient-end: #0a0a0a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-image: radial-gradient(circle at top right, #252525 0%, #121212 100%);
    background-attachment: fixed;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

/* Header Styles */
header {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
    filter: drop-shadow(0 0 8px rgba(247, 147, 26, 0.5));
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 0 15px rgba(247, 147, 26, 0.3);
}

/* Controls Section */
.controls {
    background-color: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 81px; /* Header height + padding */
    z-index: 99;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.search-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-box::before {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.2);
}

.filter-options, .sort-options {
    min-width: 170px;
    position: relative;
}

.filter-options::after, .sort-options::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    pointer-events: none;
}

.filter-options select, .sort-options select {
    width: 100%;
    padding: 12px 15px;
    appearance: none;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Fix dropdown option colors */
.filter-options select option, .sort-options select option {
    background-color: #1a1a1a;
    color: var(--text-color);
    padding: 10px;
}

/* Highlight selected/hover options */
.filter-options select option:checked,
.filter-options select option:hover,
.sort-options select option:checked,
.sort-options select option:hover {
    background-color: var(--accent-color);
    color: #000;
}

.filter-options select:focus, .sort-options select:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.2);
}

/* Card Grid Styles */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid var(--card-border);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 15px rgba(247, 147, 26, 0.2);
    border-color: rgba(247, 147, 26, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), #e67e22);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.episode-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.episode-number::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--accent-color);
}

.audience-count {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #bbb;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.card:hover .audience-count {
    background-color: rgba(247, 147, 26, 0.1);
}

.audience-count i {
    margin-right: 5px;
    color: var(--accent-color);
}

.guest-info {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.guest-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background-origin: border-box;
    background-clip: content-box, border-box;
    background-image: 
        linear-gradient(var(--card-bg), var(--card-bg)), 
        linear-gradient(to right, var(--accent-color), #e67e22);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card:hover .guest-image {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(247, 147, 26, 0.3);
}

.guest-name {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
}

.episode-date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.episode-date::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
    font-size: 0.8rem;
    color: #777;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
}

.tag {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #ddd;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card:hover .tag {
    background-color: rgba(247, 147, 26, 0.08);
    border-color: rgba(247, 147, 26, 0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: #999;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    color: var(--accent-color);
    background-color: rgba(247, 147, 26, 0.1);
    transform: translateY(-3px);
}

.space-link {
    margin-top: 25px;
    width: 100%;
}

.space-link a {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-color), #e67e22);
    color: #000;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
}

.space-link a:hover {
    background: linear-gradient(135deg, #e67e22, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 147, 26, 0.4);
}

/* Footer Styles */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 50px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(247, 147, 26, 0.3));
}

.footer-logo h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-links a {
    color: #bbb;
    transition: color 0.3s ease;
    font-weight: 500;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    font-size: 1.3rem;
    color: #bbb;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
}

.footer-social a:hover {
    color: var(--accent-color);
    background-color: rgba(247, 147, 26, 0.1);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content, .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo, .footer-logo {
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .footer-links ul {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .search-filter {
        flex-direction: column;
    }
    
    .filter-options, .sort-options {
        width: 100%;
    }
    
    .controls {
        top: 75px;
    }
    
    /* Hide controls on scroll down for mobile */
    .controls.hidden {
        transform: translateY(-100%);
    }
}

/* Animation for cards */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }

/* No results message styling */
.no-results, .error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 1.1rem;
}

.error-message {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Subtle hover effect for all interactive elements */
button, select, input, a {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}