/* ===================================
   TOP BAR STYLES
   =================================== */
.top-bar {
    background: #1a1a1a;
    color: white;
    font-size: 13px;
    border-bottom: 1px solid #2a2a2a;
}

.top-bar-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 10px 0;
}

/* Left: Trustpilot */
.top-bar-left {
    display: flex;
    align-items: center;
}

.trustpilot-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s ease;
}

.trustpilot-link:hover {
    opacity: 0.9;
}

.trustpilot-label {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.trustpilot-stars-svg {
    height: 20px;
    width: auto;
}

.trustpilot-reviews {
    font-size: 12px;
    color: #ccc;
    white-space: nowrap;
}

.trustpilot-reviews::after {
    content: ' Trustpilot';
    font-weight: 700;
}

/* Center: Rotating Text */
.top-bar-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.rotating-text-container {
    position: relative;
    height: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.rotating-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.rotating-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Right: Phone & Language */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Phone Number */
.top-bar-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
}

.top-bar-phone:hover {
    background: #2a2a2a;
    color: var(--color-primary);
}

.top-bar-phone svg {
    flex-shrink: 0;
}

/* Language Selector */
.top-bar-language {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #2a2a2a;
    border-radius: 4px;
}

.language-select {
    background: transparent;
    border: none;
    color: white;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    padding: 0 4px;
}

.language-select option {
    background: #1a1a1a;
    color: white;
}

.language-select option:hover {
    background: #1a1a1a;
}

/* Responsive Top Bar */
@media (max-width: 1200px) {
    .trustpilot-reviews {
        display: none;
    }

    .top-bar-content {
        gap: 1rem;
    }
}

@media (max-width: 1024px) {
    .top-bar-content {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
    }

    .trustpilot-label {
        display: none;
    }

    .rotating-text {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 11px;
    }

    .top-bar-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding-bottom: 12px;
    }

    /* 1. Trustpilot */
    .top-bar-left {
        width: 100%;
        justify-content: center;
        order: 1;
        margin-bottom: 4px;
    }

    /* 2. Rotating Text */
    .top-bar-center {
        display: flex;
        width: 100%;
        order: 2;
        margin-bottom: 4px;
    }

    .rotating-text-container {
        max-width: 100%;
    }

    /* 3. Right Section (Phone + Language) */
    .top-bar-right {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 8px;
        order: 3;
    }

    /* 3a. Phone */
    .top-bar-phone {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    /* 3b. Language */
    .top-bar-language {
        display: flex;
        order: 2;
    }

    .trustpilot-label,
    .trustpilot-reviews {
        display: none;
    }

    .trustpilot-stars-svg {
        height: 16px;
    }
}