/* Berlin PHP Custom Styles */

/* Global link styling - remove all underlines */
a, a:hover, a:focus, a:active {
    text-decoration: none !important;
}

/* Brand colors - Berlin PHP Usergroup Color Palette */
:root {
    --dark-charcoal: #333333;      /* Dark gray/black */
    --dark-blue: #4F5B93;          /* Primary brand blue */
    --php-blue: #8892BF;           /* Light PHP blue */
    --orange-red: #F75900;         /* Bright orange accent */
    --warning-yellow: #FFAA00;     /* Warning/highlight yellow */
    --light-gray: #F2F2F2;         /* Background gray */
    --dark-magenta-color: #793862; /* Speaker tags magenta */
    
    /* Legacy aliases for compatibility */
    --php-light-blue: #8892BF;
    --berlin-red: #e30613;
}

/* Custom navbar styling */
.navbar.is-dark {
    background-color: var(--dark-blue);
}

.navbar.is-dark .navbar-brand .navbar-item:hover,
.navbar.is-dark .navbar-menu .navbar-item:hover {
    background-color: var(--php-blue);
    color: white;
}

/* Logo styling in navbar */
.navbar-brand img {
    max-height: 3rem;
    filter: brightness(1.1);
    transition: filter 0.2s ease;
}

.navbar-brand .navbar-item:hover img {
    filter: brightness(1.3);
}

.navbar-brand .navbar-item {
    padding: 1rem 1.5rem;
}

/* Hero section with PHP theming */
.hero.is-primary {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--php-blue) 100%);
}

.hero.is-primary .title,
.hero.is-primary .subtitle {
    color: white;
}

/* Cards and boxes */
.card:hover {
    box-shadow: 0 8px 16px rgba(79, 91, 147, 0.15);
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* Next meetup box styling */
.box.next-meetup {
    border-left: 5px solid var(--php-blue);
}

/* Box with accent border */
.box {
    border-top: 3px solid var(--light-gray);
}

.box:hover {
    border-top-color: var(--php-blue);
    transition: border-color 0.2s ease;
}

/* Orange highlights for special elements */
.highlight-orange {
    color: var(--orange-red) !important;
}

.border-orange {
    border-left: 3px solid var(--orange-red) !important;
}

.bg-orange {
    background-color: var(--orange-red) !important;
    color: white !important;
}

/* Tag styling */
.tag.is-php {
    background-color: var(--php-blue);
    color: white;
}

.tag.is-magenta {
    background-color: var(--light-gray);
    color: var(--dark-charcoal);
    font-weight: 600;
}

/* Tag link hover effects - only for clickable tags */
a.tag.is-php {
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

a.tag.is-php:hover {
    border-color: var(--orange-red);
    transform: translateY(-1px);
}

a.tag.is-magenta {
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

a.tag.is-magenta:hover {
    border-color: var(--orange-red);
    transform: translateY(-1px);
}

.tag.is-warning {
    background-color: var(--warning-yellow);
    color: var(--dark-charcoal);
    font-weight: 600;
}

.tag.is-highlight {
    background-color: var(--orange-red);
    color: white;
}

.tag.is-dark {
    background-color: var(--dark-charcoal);
    color: white;
}

/* Special accent elements */
.accent-orange::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1em;
    background-color: var(--orange-red);
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Event Landing Page Styling */
.hero.is-large {
    min-height: 10rem;
    display: flex;
    align-items: center;
    transition: min-height 0.3s ease, padding 0.3s ease;
}

/* Push content down when navbar is fixed */
body.has-navbar-fixed-top {
    padding-top: 3.25rem;
}

/* Ensure hero-body centers content */
.hero.is-large .hero-body {
    display: flex;
    align-items: center;
    transition: padding 0.3s ease;
}

/* Shrunk state when scrolling */
.hero.is-large.shrunk {
    min-height: 6rem;
}

.hero.is-large.shrunk .hero-body {
    padding: 2rem 6rem;
}

.button.is-warning {
    background-color: #FFD700;
    color: var(--dark-charcoal);
    border: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.button.is-warning:hover {
    background-color: var(--orange-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(247, 89, 0, 0.3);
}

.button.is-rounded {
    border-radius: 25px;
    padding: 1.5rem 2rem;
}

/* Event Card Styling */
.card.is-shadowless {
    box-shadow: none;
    transition: all 0.3s ease;
}

.card.is-shadowless:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(79, 91, 147, 0.1);
}

/* Icon styling */
.icon.is-rounded {
    border-radius: 50%;
    padding: 1rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Section */
.has-background-primary {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--php-blue) 100%) !important;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .hero .title.is-1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle.is-3 {
        font-size: 1.5rem;
    }
    
    .navbar-brand img {
        max-height: 2.5rem;
    }
    
    .button.is-large {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
    }
}

/* Talk tags */
.tag {
    border-radius: 20px;
}

.tag.is-php {
    background-color: var(--php-blue);
    color: white;
}

/* Footer improvements */
.footer {
    background-color: var(--light-gray);
    border-top: 1px solid var(--dark-charcoal);
    color: var(--dark-charcoal);
}

.footer .title {
    color: var(--dark-charcoal);
}

.footer a {
    color: var(--dark-blue);
}

.footer a:hover {
    color: var(--php-blue);
}

/* Responsive improvements */
@media screen and (max-width: 768px) {
    .hero .title.is-1 {
        font-size: 2rem;
    }
    
    .hero .subtitle.is-3 {
        font-size: 1.25rem;
    }
}

/* Archive page styling */
.archive-item {
    border-left: 3px solid var(--php-blue);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.archive-date {
    color: var(--dark-blue);
    font-weight: 600;
}

.archive-item:hover {
    border-left-color: var(--php-blue);
    background-color: rgba(242, 242, 242, 0.3);
    transition: all 0.2s ease;
}

/* Code blocks */
pre {
    background-color: var(--light-gray);
    border: 1px solid var(--dark-charcoal);
    border-radius: 4px;
    color: var(--dark-charcoal);
}

/* Links */
a {
    color: var(--dark-blue);
    text-decoration: none !important;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--php-blue);
    text-decoration: none !important;
}

/* Navigation links */
.navbar a {
    color: white !important;
}

/* Content links */
.content a {
    color: var(--dark-blue);
    text-decoration: none !important;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.content a:hover {
    color: white;
    background-color: var(--php-blue);
    text-decoration: none !important;
}

/* Event title links and other prominent links */
.title a, .subtitle a {
    color: inherit;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.title a:hover, .subtitle a:hover {
    color: white;
    background-color: var(--dark-blue);
    transform: translateY(-1px);
}

/* Breadcrumb links */
.breadcrumb a {
    color: var(--dark-blue);
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.breadcrumb a:hover {
    color: white;
    background-color: var(--php-blue);
}

/* Buttons - Primary for CTAs and highlights */
.button.is-primary {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: white;
}

.button.is-primary:hover {
    background-color: var(--php-blue);
    border-color: var(--php-blue);
    color: white;
}

/* Special CTA buttons with orange highlight */
.button.is-cta,
.button.is-primary.is-large {
    background-color: var(--orange-red);
    border-color: var(--orange-red);
    color: white;
}

.button.is-cta:hover,
.button.is-primary.is-large:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(247, 89, 0, 0.2);
}

/* Override Bulma button hover states to respect our color scheme */
.button:hover {
    border-color: var(--php-blue) !important;
}

.button.is-outlined:hover {
    background-color: var(--php-blue) !important;
    border-color: var(--php-blue) !important;
    color: white !important;
}

/* Secondary buttons */
.button.is-outlined {
    border-color: var(--php-blue);
    color: var(--php-blue);
}

.button.is-outlined:hover {
    background-color: var(--php-blue);
    border-color: var(--php-blue);
    color: white;
}

/* Hero large padding for desktop */
@media screen and (min-width: 769px), print {
    .hero.is-large .hero-body {
        padding: 6rem 6rem;
    }
}

/* Equal height cards for Featured Talks section only */
.section .columns .card {
    height: 100%;
}

.section .columns .card .card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Reset card heights for About section */
.section .columns .column:nth-child(2) .card {
    height: auto;
}

.section .columns .column:nth-child(2) .card .card-content {
    height: auto;
    display: block;
}