/* Base Styles */
:root {
    --primary-color: #000000;
    --secondary-color: #1d1d1f;
    --accent-color: #0066cc;
    --text-color: #1d1d1f;
    --text-light: #86868b;
    --bg-color: #ffffff;
    --card-bg: #eaeff6;
    --border-color: #d2d2d7;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Book Antiqua', serif
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 8px;
    color: var(--primary-color);
}

/* Remove the line under section titles */
.section-title::after {
    content: none;
}

.section-padding {
    padding: 70px 0;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Logo container for better alignment */
.logo-container {
    display: flex;
    align-items: center;
}

/* Base logo style */
.logo {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-bottom: 0px;
}

/* Spirits part of the logo */
.logo-spirits {
    color: var(--primary-color);
}

/* AI part of the logo */
.logo-ai {
    color: var(--accent-color);
    margin-left: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    min-width: 300px;
}

nav ul li {
    margin-left: 40px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    font-weight: 400;
    font-size: 0.95rem;
    position: relative;
    color: var(--text-light);
    letter-spacing: 0.2px;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.4;
}

/* About Section */
.about {
    background-color: var(--bg-color);
    padding: 80px 0;
}

.about p {
    max-width: 800px;
    margin: 0 auto 1rem;
    text-align: left;
    font-size: 1.1rem;
    color: var(--text-light);
}

.about .signature {
    text-align: right;
    font-style: italic;
    margin-top: 2rem;
}

/* Talks Section */
.talks {
    background-color: var(--bg-color);
    padding: 70px 0;
}

.talk-card-link {
    z-index: 1;
}

.talk-card-link:last-child {
    margin-bottom: 0;
}

.talk-card {
    cursor: pointer;
    position: relative;
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--bg-color);
    margin-bottom: 20px;
}

.talk-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.talk-image {
    flex: 0 0 300px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.talk-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.02), rgba(0,0,0,0));
    pointer-events: none;
}

.talk-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

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

.talk-content {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
}

.talk-content h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    font-weight: 600;
    line-height: 1.2;
}

.talk-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.talk-date::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 8px;
}

.talk-speaker {
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 1rem;
}

.talk-description {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.95rem;
    flex-grow: 1;
}

.talk-links {
    display: flex;
    flex-wrap: wrap;
}

.talk-link {
    background: transparent;
    color: var(--text-color);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--text-light);
    margin-right: 8px;
}

.talk-link i {
    margin-right: 6px;
}

.talk-link:hover {
    background: var(--text-light);
    color: white;
    border-color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--bg-color);
    color: var(--text-light);
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: color var(--transition-speed) ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (min-width: 1200px) {
    .talk-image {
        flex: 0 0 380px;
    }
}

@media (max-width: 1200px) and (min-width: 900px) {
    .talk-image {
        flex: 0 0 300px;
    }
}

@media (max-width: 900px) {
    .talk-image {
        flex: 0 0 auto;
        height: 240px;
    }
    
    .talk-card {
        flex-direction: column;
    }
    
    .talk-content {
        padding: 25px 30px;
    }
    
    .hero h2 {
        font-size: 2.8rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
        justify-content: center;
    }
    
    nav ul li {
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Event Detail Page */
.event-detail {
    background-color: var(--bg-color);
    padding: 50px 0 80px;
}

.event-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.event-header {
    margin-bottom: 30px;
}

.event-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1rem;
}

.event-meta p {
    margin: 0;
}

.event-date::before, .event-speaker::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.event-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.event-image img {
    width: 100%;
    height: auto;
    display: block;
}

.reduced-image {
    max-height: 400px;
    object-fit: contain;
    background-color: #f5f5f7;
}

.event-content {
    max-width: 800px;
    margin: 0 auto;
}

.event-section {
    margin-bottom: 35px;
}

.event-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.event-section p {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.takeaways-list {
    padding-left: 25px;
}

.takeaways-list li {
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.05rem;
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.keyword {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--card-bg);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.event-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--text-light);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
}

.resource-link i {
    margin-right: 8px;
}

.resource-link:hover {
    background-color: var(--text-light);
    color: white;
}

/* Remove the problematic pseudo-element that's blocking clicks */
.talk-card::after {
    content: none;
}

/* Responsive styles for Event Detail page */
@media (max-width: 900px) {
    .event-title {
        font-size: 2.2rem;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .event-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .event-title {
        font-size: 1.8rem;
    }
    
    .event-section p {
        font-size: 1rem;
    }
    
    .event-resources {
        flex-direction: column;
    }
}

.talk-content-full {
    padding: 30px 35px;
}

/* Update the talk card style to look better without an image */
.talk-card {
    cursor: pointer;
    position: relative;
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--bg-color);
    margin-bottom: 20px;
}

.talk-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(0, 0, 0, 0.2);
} 