/**
 * CC TopBar Module - Styles
 * 
 * @author Carlos Casado
 */

#cc-topbar {
    width: 100%;
    font-size: 13px;
    line-height: 1.4;
    z-index: 1000;
}

.cc-topbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Schedule section */
.cc-topbar-schedule {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.cc-topbar-schedule-link {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cc-topbar-schedule-link:hover {
    opacity: 0.85;
    text-decoration: none;
}

.cc-topbar-schedule-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cc-topbar-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.cc-topbar-status-dot.open {
    background-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.cc-topbar-status-dot.closing-soon {
    background-color: #f97316;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}

.cc-topbar-status-dot.closed {
    background-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    animation: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.cc-topbar-status-text {
    font-weight: 500;
}

.cc-topbar-status-text .status-main {
    font-weight: 600;
}

.cc-topbar-status-text .status-secondary {
    opacity: 0.85;
    font-weight: 400;
}

/* Right side */
.cc-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Contact links */
.cc-topbar-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cc-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.cc-topbar-link:hover {
    opacity: 1;
    text-decoration: none;
}

.cc-topbar-link svg {
    flex-shrink: 0;
}

.cc-topbar-whatsapp {
    background-color: rgba(37, 211, 102, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
}

.cc-topbar-whatsapp:hover {
    background-color: rgba(37, 211, 102, 0.25);
}

/* Social links */
.cc-topbar-social {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.cc-topbar-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    text-decoration: none;
}

.cc-topbar-social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

.cc-topbar-social-link svg {
    width: 14px;
    height: 14px;
}

/* Loading state */
.cc-topbar-loading {
    opacity: 0.7;
    font-style: italic;
}

/* Responsive */
@media (max-width: 991px) {
    .cc-topbar-container {
        justify-content: center;
        text-align: center;
    }

    .cc-topbar-schedule {
        width: 100%;
        justify-content: center;
    }

    .cc-topbar-right {
        width: 100%;
        justify-content: center;
    }

    .cc-topbar-contact {
        justify-content: center;
    }

    .cc-topbar-social {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 575px) {
    #cc-topbar {
        font-size: 12px;
    }

    .cc-topbar-container {
        padding: 6px 15px;
    }

    .cc-topbar-link span {
        display: none;
    }

    .cc-topbar-whatsapp span {
        display: inline;
    }

    .cc-topbar-contact {
        gap: 10px;
    }

    .cc-topbar-social {
        gap: 8px;
    }

    .cc-topbar-social-link {
        width: 26px;
        height: 26px;
    }
}