/* Press & Reviews section - Modern Card Design */
/* Matching Professional Affiliations section style */

/* Theme CSS Variables - Lighter dark mode for Press section */
#press.section {
    /* Softer dark theme variables with lighter cards */
    --background: 250 10% 20%;
    --foreground: 250 10% 98%;
    --card: 251 10% 32%;
    --card-foreground: 250 10% 98%;
    --popover: 251 10% 32%;
    --popover-foreground: 250 10% 98%;
    --primary: 263 45% 78%;
    --primary-foreground: 250 10% 20%;
    --secondary: 254 25% 50%;
    --secondary-foreground: 250 10% 98%;
    --muted: 254 10% 35%;
    --muted-foreground: 258 10% 75%;
    --accent: 271 25% 42%;
    --accent-foreground: 345 55% 88%;
    --destructive: 0 68% 67%;
    --destructive-foreground: 250 10% 20%;
    --border: 252 10% 38%;
    --input: 249 10% 30%;
    --ring: 263 45% 78%;
    
    /* Softer shadows for lighter mood */
    --shadow-2xs: 0 1px 2px 0 hsl(250 40% 10% / 0.05);
    --shadow-xs: 0 1px 3px 0 hsl(250 40% 10% / 0.1), 0 1px 2px 0 hsl(250 40% 10% / 0.06);
    --shadow-sm: 0 2px 4px 0 hsl(250 40% 10% / 0.08), 0 1px 2px 0 hsl(250 40% 10% / 0.06);
    --shadow: 0 4px 6px -1px hsl(250 40% 10% / 0.1), 0 2px 4px -1px hsl(250 40% 10% / 0.06);
    --shadow-md: 0 6px 10px -2px hsl(250 40% 10% / 0.12), 0 2px 4px -1px hsl(250 40% 10% / 0.06);
    --shadow-lg: 0 10px 15px -3px hsl(250 40% 10% / 0.15), 0 4px 6px -2px hsl(250 40% 10% / 0.08);
    --shadow-xl: 0 20px 25px -5px hsl(250 40% 10% / 0.15), 0 10px 10px -5px hsl(250 40% 10% / 0.04);
    --shadow-2xl: 0 25px 50px -12px hsl(250 40% 10% / 0.25);
    
    /* Apply medium-toned gradient background */
    background: linear-gradient(
        135deg,
        #e8e5f0 0%,
        #d9d4e8 20%,
        #cfc8df 40%,
        #d4cee2 60%,
        #ddd7ea 80%,
        #e2dcee 100%
    );
    position: relative;
    overflow: visible;
    padding: 5rem 0;
}

/* Add subtle ambient effects for light background */
#press.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        hsl(263 40% 75% / 0.4) 50%, 
        transparent 100%
    );
    z-index: 1;
}

#press.section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(
            ellipse at 20% 0%,
            rgba(139, 108, 197, 0.15) 0%,
            transparent 35%
        ),
        radial-gradient(
            ellipse at 80% 100%,
            rgba(167, 139, 204, 0.12) 0%,
            transparent 35%
        ),
        radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.03) 0%,
            transparent 50%
        );
    pointer-events: none;
    z-index: 0;
}


/* Section title - using site fonts */
#press.section .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: hsl(250 20% 25%);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 2;
}

/* Simple underline for section title */
#press.section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: hsl(263 35% 55%);
    opacity: 1;
}

/* Container adjustments */
#press.section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Modern card grid layout matching links section */
#press.section .press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Tablet adjustments */
@media (max-width: 768px) {
    #press.section .press-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.25rem;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    #press.section .press-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Dark card design using theme */
#press.section .press-article {
    background: hsl(var(--card));
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
}

/* Sophisticated hover effects for lighter cards */
#press.section .press-article:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
    border-color: hsl(var(--primary) / 0.6);
    background: hsl(251 10% 36%);
}

/* Remove old pseudo-elements */
#press.section .press-article::before,
#press.section .press-article::after {
    display: none;
}

/* Article header - modern card style */
#press.section .press-article-header {
    padding: 1.5rem 1.5rem 0;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

/* Meta container for pub/date */
#press.section .press-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
    margin-bottom: 0;
}

/* Publication name - using site secondary font */
#press.section .press-article .article-publication {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: hsl(var(--accent-foreground));
    font-weight: 600;
    margin: 0;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: 0.35rem 0.7rem;
    background: hsl(271 25% 48%);
    border-radius: 0.375rem;
    border: 1px solid hsl(271 25% 55%);
    box-shadow: 0 1px 3px hsl(0 0% 0% / 0.08);
}

/* Date - using site tertiary font */
#press.section .press-article .article-date {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    color: hsl(var(--muted-foreground));
    font-weight: 400;
    margin: 0;
    display: inline-block;
    letter-spacing: 0.02em;
}

/* Article title - using site primary font */
#press.section .article-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0;
    letter-spacing: -0.01em;
    padding: 0 0 0.75rem 0;
    text-align: left;
    position: relative;
}

/* Animated underline for title */
#press.section .article-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: hsl(var(--primary));
    opacity: 0.3;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#press.section .press-article:hover .article-title::after {
    width: 50px;
    opacity: 0.6;
}

/* Article quote - using site primary font */
#press.section .article-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: hsl(var(--foreground) / 0.85);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    font-style: italic;
    text-align: left;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Article content */
#press.section .press-article-content {
    padding: 0.75rem 1.5rem 1rem;
    margin-top: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Footer */
#press.section .press-article-footer {
    margin-top: auto;
    padding: 1rem 1.5rem 1.5rem;
    text-align: left;
}

/* Slick modern button design - Read Review */
#press.section .article-link {
    display: inline-flex;
    align-items: center;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: 1px solid hsl(var(--primary) / 0.2);
    border-radius: 0.5rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    letter-spacing: 0.02em;
    text-transform: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Premium light mode hover with gradient shine */
#press.section .article-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
}

#press.section .article-link:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    color: hsl(250 25% 25%);
    border-color: transparent;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 24px -6px rgba(140, 120, 200, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 24px 48px -12px rgba(140, 120, 200, 0.15);
}

#press.section .article-link:hover::before {
    left: 100%;
}

#press.section .article-link:active {
    transform: translateY(0);
}

#press.section .article-link span {
    margin-right: 0.5rem;
    position: relative;
    z-index: 1;
}

#press.section .article-link i {
    font-size: 0.75rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

#press.section .article-link:hover i {
    transform: translateX(4px);
}

/* Remove any special featured styling - all cards equal */
#press.section .press-article {
    cursor: pointer;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    #press.section {
        padding: 3rem 0;
    }
    
    #press.section .section-title {
        font-size: 2rem;
    }
}

/* Mobile specific adjustments */
@media (max-width: 650px) {
    #press.section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #press.section .article-title {
        font-size: 1.5rem;
    }
    
    #press.section .article-quote {
        font-size: 0.95rem;
    }
}

/* Small mobile adjustments */
@media (max-width: 400px) {
    #press.section .press-article-header,
    #press.section .press-article-content,
    #press.section .press-article-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #press.section .article-title {
        font-size: 1.3rem;
    }
}

/* Subtle entrance animation matching links section */
#press.section .press-article {
    animation: fadeInUp 0.6s ease-out backwards;
}

#press.section .press-article:nth-child(2) {
    animation-delay: 0.1s;
}

#press.section .press-article:nth-child(3) {
    animation-delay: 0.2s;
}

#press.section .press-article:nth-child(4) {
    animation-delay: 0.3s;
}

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

/* Rotate Rockport image which is upside down */
img[src$="with-pieter-wispelwey-at-rockport.jpeg"],
img[src$="with-pieter-wispelwey-at-rockport.jpeg"].gallery-img,
img[src$="with-pieter-wispelwey-at-rockport.jpeg"].thumbnail-img {
    transform: rotate(180deg) !important;
}

/* Hide hero tagline on smaller screens */
@media (max-width: 800px) {
    .hero-description {
        display: none;
    }
}