/**
 * Giffgaff eSIM 工具 - 服务时间样式
 * 包含：服务时间提醒、时间卡片等专用样式
 */

/* ===== 服务时间提醒布局 ===== */
.service-time-alert {
    padding: 0;
    border: none;
    background: transparent;
}

/* 屏蔽 Bootstrap alert 默认样式 */
#serviceTimeAlert.alert,
#serviceTimeAlert.alert-success,
#serviceTimeAlert.alert-warning {
    --bs-alert-bg: transparent;
    --bs-alert-border-color: transparent;
    --bs-alert-color: inherit;
    background-color: transparent !important;
    border-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.service-time-grid {
    display: grid;
    grid-template-columns: 2fr 0.8fr;
    gap: var(--st-gap);
    padding: 18px;
    border-radius: var(--st-radius);
    background: linear-gradient(135deg, #fffaf0 0%, #fff8e0 100%);
    border: 1px solid rgba(255, 193, 7, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* ===== 左侧内容区 ===== */
.service-time-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff3d6 60%, #fffaf0 60%);
    border: 1px solid rgba(255, 193, 7, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

.service-time-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%;
}

.service-time-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 8px;
    width: 100%;
    padding: 0;
}

.service-time-layout {
    display: flex;
    align-items: center;
    gap: 24px;
}

.service-time-icon-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

.service-time-content-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-time-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--st-strong);
    letter-spacing: 0.2px;
    text-align: left;
    margin-bottom: 3px;
}

.service-time-message {
    color: #334155;
    line-height: 1.6;
    text-align: left;
    margin-top: 0;
    width: 100%;
}

/* ===== 服务时间图标 ===== */
#serviceTimeIcon {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e6f6ee;
    color: #10b981;
    font-size: 36px;
    box-shadow: inset 0 0 0 2px rgba(16,185,129,0.15);
    line-height: 1;
    text-align: center;
}

#serviceTimeIcon.warning {
    background: #e6f6ee;
    color: #10b981;
    box-shadow: inset 0 0 0 2px rgba(16,185,129,0.15);
    animation: breathing-light-green 2s ease-in-out infinite;
}

#serviceTimeIcon.success {
    background: #e6f6ee;
    color: #10b981;
    box-shadow: inset 0 0 0 2px rgba(16,185,129,0.15);
    animation: breathing-light-green 2s ease-in-out infinite;
}

#serviceTimeIcon:hover {
    transform: scale(1.1);
}

.alert-warning #serviceTimeIcon {
    animation: warning-pulse 2s ease-in-out infinite;
    background: #f8ecbb;
    color: #f59d06;
    box-shadow: inset 0 0 0 2px rgba(245,158,11,0.15);
}

.alert-success #serviceTimeIcon {
    animation: breathing-light-green 2s ease-in-out infinite;
    background: #e0f6eb;
    color: #10b981;
    box-shadow: inset 0 0 0 2px rgba(16,185,129,0.15);
}

/* ===== 操作徽章 ===== */
.service-time-action-badge {
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
    text-align: center;
}

.service-time-action-badge.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 2px solid #16a34a;
    animation: breathing-light-green 2s ease-in-out infinite;
}

.service-time-action-badge.warning {
    background: #fef2f2;
    color: #dc2626;
    border: 2px solid #dc2626;
    font-weight: 800;
    text-shadow: none;
    animation: breathing-light 2s ease-in-out infinite;
}

.service-time-action-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== 时间卡片 ===== */
.current-time-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    justify-items: center;
    text-align: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--st-card-radius);
    background: linear-gradient(135deg, #fffaf0 60%, #fff3d6 60%);
    box-shadow: var(--st-card-shadow);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    animation: pulse-glow 2s ease-in-out infinite;
}

.current-time-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
    pointer-events: none;
    z-index: -1;
}

.time-card-icon {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eaeaff, #e0e7ff);
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(99,102,241,0.22);
    animation: breathing-light-purple 2s ease-in-out infinite;
}

.time-card-icon i {
    color: var(--st-accent);
    font-size: 32px;
}

.time-card-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.time-card-label {
    font-size: 18px;
    color: var(--st-muted);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.time-card-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: #0b1324;
    text-shadow: 0 1px 0 rgba(255,255,255,0.6);
    animation: time-breathe 3s ease-in-out infinite;
}

.time-card-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}