/* AIGA Baltimore Blocks - Frontend Styles */

/* Hero Section */
.hero-section {
    position: relative;
    overflow-y: visible;
    padding: clamp(120px, 18vw, 220px) 0 clamp(90px, 15vw, 160px);
    color: #ffffff;
    text-align: center;
    background:
        linear-gradient(180deg, var(--color-primary) 0%, var(--color-violet) 55%, rgba(255, 255, 255, 0) 100%);
}

.hero-section__inner {
    position: relative;
    z-index: 3;
    max-width: 960px;
    margin: 0 auto;
}

.hero-section__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-eyebrow {
    font-size: 1.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5%;
    color: rgba(255, 255, 255, 0.8);
}

.hero-title {
    margin-top: 0 !important;
    font-weight: 800;
    font-size: clamp(2.75rem, 6vw, 4.75rem);
    line-height: 1.05;
    color: white !important;
}

.hero-subtitle {
    margin: 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.hero-section__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.9rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
    border: 0;
}

.hero-button__label {
    display: inline-block;
    letter-spacing: 0.02em;
}

.hero-button--primary {
    background: var(--color-secondary);
    color: #ffffff;
}

.hero-button--secondary {
    background-color: #ffffff;
    color: #17183b;
    box-shadow: 0 14px 30px rgba(23, 24, 59, 0.25);
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.28); 
    opacity: 0.9;
}
.hero-button--primary:hover {
    color: white;
}

.hero-section__decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.hero-section__decor {
    position: absolute;
    display: block;
    max-width: none;
    user-select: none;
}

.hero-section__decor--star,
.hero-section__decor--x {
    pointer-events: auto;
}

.hero-section__decor--left {
    width: 80vw;
    left: -3%;
    bottom: -5%;
}

.hero-section__decor--right {
    width: 50vw;
    right: -2%;
    top: 8%;
}

.hero-section__decor--star {
    width: clamp(72px, 10vw, 124px);
    right: 10%;
    top: 24%;
    transition: transform 0.3s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-section__decor--star {
        cursor: pointer;
    }

    .hero-section__decor--star:hover {
        animation: spin 0.6s ease-in-out;
    }
}

.hero-section__decor--x {
    width: clamp(44px, 7vw, 88px);
    left: 5%;
    bottom: 35%;
    transition: transform 0.3s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-section__decor--x {
        cursor: pointer;
    }

    .hero-section__decor--x:hover {
        animation: spin 0.6s ease-in-out;
    }
}


/* Content Split */
.content-split {
    padding: 80px 0;
}

.content-split--white {

}

.content-split--light-gray {
    background-color: #f9fafb;
}

.content-split--primary {
    background-color: #007cba;
    color: white;
}

.content-split--secondary {
    background-color: #6c757d;
    color: white;
}

/* Content Split Layout */
.content-split .row {
    display: flex;
    align-items: center;
}

.content-split .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .content-split .row {
        flex-direction: column;
    }
    
    .content-split .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

.content-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.content-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.content-image {
    text-align: center;
}

.content-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-split .btn-primary {
    background-color: #007cba;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s ease;
}

.content-split .btn-primary:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-section--primary {
    background-color: #007cba;
    color: white;
}

.cta-section--secondary {
    background-color: #6c757d;
    color: white;
}

.cta-section--accent {
    background-color: #fd7e14;
    color: white;
}

.cta-section--dark {
    background-color: #1f2937;
    color: white;
}

.cta-section.text-left {
    text-align: left;
}

.cta-section.text-right {
    text-align: right;
}

.cta-icon {
    margin-bottom: 1.5rem;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button .btn {
    background-color: white;
    color: #007cba;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.2s ease;
}

.cta-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Events Section */
.events-section {
    padding: 80px 0;
}

.events-section--white {
    /* background-color: white; */
}

.events-section--light-gray {
    background-color: #f9fafb;
}

.events-section--primary {
    background-color: var(--color-primary);
    color: white;
}

.events-section--secondary {
    background-color: var(--color-secondary);
    color: white;
}

/* Events Grid Block */
.events-grid {
    padding: 80px 0;
}

.events-grid--white {
    /* background-color: white; */
}

.events-grid--light-gray {
    background-color: #f9fafb;
}

.events-grid--primary {
    background-color: var(--color-primary);
    color: white;
}

.events-grid--secondary {
    background-color: var(--color-secondary);
    color: white;
}

.events-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.events-container {
    text-align: center;
    padding: 3rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-description {
    font-size: 1.125rem;
    opacity: 0.8;
    line-height: 1.6;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.event-excerpt {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.event-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.section-footer {
    text-align: center;
}

/* Signup Section */
.signup-section {
    padding: 80px 0;
}

.signup-section--white {
    /* background-color: white; */
}

.signup-section--light-gray {
    background-color: #f9fafb;
}

.signup-section--primary {
    background-color: var(--color-primary);
    color: white;
}

.signup-section--secondary {
    background-color: var(--color-secondary);
    color: white;
}

.newsletter-title,
.committee-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.newsletter-description,
.committee-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}


.newsletter-signup,
.committee-signup {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-title,
.committee-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.newsletter-description,
.committee-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-message {
    min-height: 20px;
    font-size: 0.875rem;
}

.slack-logo {
    margin-top: 1rem;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-1px);
}

.btn-white {
    background-color: white;
    color: var(--color-primary);
}

.btn-white:hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .content-title,
    .cta-title,
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-signup,
    .committee-signup {
        margin-bottom: 2rem;
    }
    .hero-section__decor--star {
        right: -1rem;
        top: 4rem;
    }
    .hero-section__decor--x {
        bottom: 13rem;
    }
}

/* Editor-specific styles */
.wp-block-aiga-baltimore-hero-section .upload-image-btn,
.wp-block-aiga-baltimore-content-split .upload-image-btn {
    width: 100%;
    padding: 2rem;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    color: #6b7280;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wp-block-aiga-baltimore-hero-section .upload-image-btn:hover,
.wp-block-aiga-baltimore-content-split .upload-image-btn:hover {
    border-color: var(--color-primary);
    background: #f0f9ff;
    color: var(--color-primary);
}

.image-container {
    position: relative;
}

.remove-image-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
}

.remove-image-btn:hover {
    background: #dc2626;
}

/* Keyframe animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
