/**
 * FEDARENE Blocks Frontend Styles
 */

/* Icon Feature Block */
.wp-block-fedarene-icon-feature .benefit-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--fedarene-primary, #00723f);
    transition: transform 0.3s;
}

.wp-block-fedarene-icon-feature:hover .benefit-icon-container {
    transform: scale(1.1);
}

.wp-block-fedarene-icon-feature .feature-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s;
}

.wp-block-fedarene-icon-feature .feature-card:hover {
    transform: translateY(-5px);
}

/* Colored Title Block */
.wp-block-fedarene-colored-title {
    margin-bottom: 3rem;
}

.wp-block-fedarene-colored-title.fedarene-colored-title {
    font-weight: 600;
}

/* Timeline Steps Block */
.wp-block-fedarene-timeline-steps {
    margin: 3rem 0;
}

.wp-block-fedarene-timeline-steps .join-process-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.wp-block-fedarene-timeline-steps .join-steps {
    margin-bottom: 2rem;
}

.wp-block-fedarene-timeline-steps .join-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.wp-block-fedarene-timeline-steps .join-step:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wp-block-fedarene-timeline-steps .number-container {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.wp-block-fedarene-timeline-steps .join-step-content {
    flex-grow: 1;
}

.wp-block-fedarene-timeline-steps .join-step-title {
    color: var(--fedarene-primary, #00723f);
    margin-bottom: 0.75rem;
}

.wp-block-fedarene-timeline-steps .join-step-content p {
    margin-bottom: 0;
    color: #666;
    line-height: 1.6;
}

/* Member Type Card Block */
.wp-block-fedarene-member-type-card .member-type-card {
    height: 100%;
    overflow: hidden;
    transition: all 0.3s;
}

.wp-block-fedarene-member-type-card .member-type-card:hover {
    transform: translateY(-5px);
}

.wp-block-fedarene-member-type-card .member-type-header {
    padding: 1.5rem;
    text-align: center;
}

.wp-block-fedarene-member-type-card .member-type-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.wp-block-fedarene-member-type-card .card-body {
    padding: 2rem;
}

.wp-block-fedarene-member-type-card .card-body p {
    line-height: 1.7;
    color: #555;
}

/* Special Page Template Styles */
.special-page .hero-joining {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    padding: 4rem 0;
}

.special-page .joining-image {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.special-page .hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

/* CTA Section Styles */
.special-page .join-cta-section {
    background: linear-gradient(135deg, 
        var(--fedarene-primary) 0%, 
        var(--fedarene-primary-dark, #005a31) 100%);
    position: relative;
    overflow: hidden;
}

.special-page .join-cta-section.cta-style-secondary {
    background: linear-gradient(135deg, 
        var(--fedarene-light-blue) 0%, 
        var(--fedarene-secondary) 100%);
}

.special-page .join-cta-section.cta-style-gradient {
    background: linear-gradient(135deg, 
        var(--fedarene-light-green) 0%, 
        var(--fedarene-light-blue) 25%, 
        var(--fedarene-light-pink) 50%, 
        var(--fedarene-golden) 75%, 
        var(--fedarene-light-green) 100%);
}

.special-page .join-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Grid for Icon Features */
@media (min-width: 768px) {
    .wp-block-columns.has-3-columns .wp-block-fedarene-icon-feature {
        flex-basis: calc(33.333% - 20px);
    }
}

@media (max-width: 767px) {
    .wp-block-fedarene-timeline-steps .join-step {
        flex-direction: column;
        text-align: center;
    }
    
    .wp-block-fedarene-timeline-steps .number-container {
        margin: 0 auto;
    }
}

/* Block Container Styles */
.wp-block-group.fedarene-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.wp-block-group.fedarene-member-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Article Quote Block */
.wp-block-fedarene-article-quote,
.article-quote {
    background: linear-gradient(to right, var(--fedarene-light-green) 4px, #f8f9fa 4px);
    padding: 2rem 2rem 2rem 3rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.wp-block-fedarene-article-quote p,
.article-quote p {
    font-size: 1.25rem;
    font-style: italic;
    color: #495057;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.wp-block-fedarene-article-quote cite,
.article-quote cite {
    font-size: 0.95rem;
    color: #6c757d;
    font-style: normal;
    display: block;
}

/* Callout Box Block */
.wp-block-fedarene-callout-box,
.article-callout {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid;
}

.article-callout.callout-info,
.wp-block-fedarene-callout-box.callout-info {
    background-color: #e7f5ff;
    border-left-color: #0056b3;
}

.article-callout.callout-success,
.wp-block-fedarene-callout-box.callout-success {
    background-color: #d3f9d8;
    border-left-color: #00723f;
}

.article-callout.callout-warning,
.wp-block-fedarene-callout-box.callout-warning {
    background-color: #fff3cd;
    border-left-color: #f4c67e;
}

.article-callout.callout-alert,
.wp-block-fedarene-callout-box.callout-alert {
    background-color: #ffe0e0;
    border-left-color: #dc3545;
}

.article-callout h3,
.wp-block-fedarene-callout-box h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.article-callout p,
.wp-block-fedarene-callout-box p {
    margin-bottom: 0;
    color: #495057;
}

/* CTA Box Block */
.wp-block-fedarene-cta-box,
.article-cta {
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-cta h3,
.wp-block-fedarene-cta-box h3 {
    color: var(--fedarene-primary);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.article-cta p,
.wp-block-fedarene-cta-box p {
    margin-bottom: 1.5rem;
    color: #495057;
    font-size: 1.1rem;
}

/* Resource Links Block */
.wp-block-fedarene-resource-links h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.wp-block-fedarene-resource-links ul,
.article-resources {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.article-resources li,
.wp-block-fedarene-resource-links li {
    margin-bottom: 1rem;
}

.article-resources a,
.wp-block-fedarene-resource-links a {
    color: var(--fedarene-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.article-resources a:hover,
.wp-block-fedarene-resource-links a:hover {
    color: var(--fedarene-primary-dark);
    transform: translateX(5px);
}

.article-resources i,
.wp-block-fedarene-resource-links i {
    font-size: 1.2rem;
}

/* Article Intro Block */
.wp-block-fedarene-article-intro,
.article-intro {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Utility Classes for Blocks */
.bg-light-blue { background-color: #BFDFE5 !important; }
.bg-light-green { background-color: #DCF1CF !important; }
.bg-light-pink { background-color: #EFC9E2 !important; }
.bg-golden { background-color: #F4C67E !important; }