/**
 * Lihtne Leht - Component Styles
 * Back-to-top, newsletter, service cards, social links, dividers
 */

/* === Back to Top Button === */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
    z-index: 99;
    backdrop-filter: blur(8px);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* === Newsletter / Search Block as Form === */
.section-newsletter .wp-block-search__inside-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.section-newsletter .wp-block-search__input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: var(--wp--preset--font-family--public-sans);
    font-weight: 300;
}

.section-newsletter .wp-block-search__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.section-newsletter .wp-block-search__button {
    background: #ffffff;
    color: #357180;
    border: none;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.section-newsletter .wp-block-search__button:hover {
    background: rgba(255, 255, 255, 0.85);
    color: #2a5a66;
}

/* === Service Cards === */
.service-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

/* === Social Links === */
.wp-block-social-links .wp-block-social-link {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.wp-block-social-links .wp-block-social-link:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* === Section Dividers === */
.section-divider {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    margin: 0;
}
