/* ==========================================
   19. Google Drive 同步設定卡片與個人資料滑動樣式
   ========================================== */
.settings-account-carousel-wrapper {
    display: flex;
    flex-direction: column;
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.settings-account-carousel {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 32px;
    touch-action: pan-y;
    will-change: transform;
    transition: transform 0.48s cubic-bezier(0.34, 1.45, 0.64, 1);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.settings-account-carousel.is-dragging {
    transition: none !important;
    cursor: grabbing;
}

.settings-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    min-height: 118px;
    box-sizing: border-box;
}

.google-auth-card {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-inner-highlight);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
}

.user-profile-card {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-inner-highlight);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
}

.profile-avatar-col {
    position: relative;
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    flex-shrink: 0;
}

.profile-avatar-circle {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--input-bg);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent !important;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease;
}

.profile-avatar-circle:active {
    transform: scale(0.94) translateZ(0);
}

#settings-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

#settings-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    pointer-events: none;
    transition: color 0.25s ease;
}

.profile-delete-avatar-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    z-index: 2;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border-radius: 50%;
    background: var(--popup-bg);
    border: 1px solid rgba(114, 47, 55, 0.55);
    color: #ac4252;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.profile-delete-avatar-btn:active {
    transform: scale(0.88) translateZ(0) !important;
}

@media (hover: hover) {
    .profile-avatar-circle:hover #settings-avatar-placeholder {
        color: var(--text);
    }

    .profile-delete-avatar-btn:hover {
        background: rgba(114, 47, 55, 0.28);
        border-color: #ff5c6a;
        color: #ff5c6a;
        transform: scale(1.08) translateZ(0);
    }
}

.profile-name-col {
    flex: 1;
    min-width: 0;
    min-height: 68px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.profile-name-label {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.4px;
    line-height: 1.2;
    user-select: none;
    -webkit-user-select: none;
}

.profile-underline-input {
    width: 100%;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid var(--glass-border) !important;
    border-radius: 0 !important;
    padding: 6px 2px;
    font-family: 'Alien Block', system-ui, -apple-system, sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text);
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
    transition: border-bottom-color 0.25s ease;
}

.profile-underline-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
    font-family: 'Alien Block', system-ui, -apple-system, sans-serif;
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.profile-underline-input:focus {
    outline: none !important;
    border: none !important;
    border-bottom: 2px solid var(--primary) !important;
    box-shadow: none !important;
    background: transparent !important;
}

.settings-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.settings-carousel-dot {
    width: 6px;
    height: 6px;
    min-width: 6px;
    min-height: 6px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: var(--text-secondary);
    opacity: 0.35;
    cursor: pointer;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: width 0.48s cubic-bezier(0.34, 1.45, 0.64, 1),
        background-color 0.28s ease,
        opacity 0.28s ease;
}

.settings-carousel-dot.active {
    width: 18px;
    background: var(--primary);
    opacity: 1;
}

.google-auth-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.google-auth-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.google-auth-status-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.google-auth-status-badge.expired {
    background: rgba(119, 32, 42, 0.22);
    color: #ac4252;
    border: 1px solid rgba(114, 47, 55, 0.48);
}

.google-auth-status-badge.connected {
    background: rgba(154, 135, 30, 0.2);
    color: var(--primary);
    border-color: rgba(154, 135, 30, 0.45);
}

.google-auth-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.google-login-action-btn,
#google-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    flex: 1;
    min-width: 160px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    box-sizing: border-box;
}

.settings-version-container {
    width: 100%;
    text-align: center;
    margin-top: 26px;
    height: 16px;
    line-height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    contain: layout style;
}

.settings-version-container #app-version-display {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.6;
    letter-spacing: 0.5px;
    display: inline-block;
    line-height: 1;
    transform: translateZ(0);
}

