/* ============================================
   THE WARD COMPANION — Clinical Shortcuts
   ============================================ */

/* List View Grid */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.shortcut-card {
    background: var(--glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.shortcut-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9800, #f44336);
    opacity: 0;
    transition: opacity 0.3s;
}

.shortcut-card:hover {
    transform: translateY(-5px);
    background: var(--glass-strong);
    box-shadow: var(--shadow-md), 0 12px 24px rgba(255, 152, 0, 0.15);
    border-color: rgba(255, 152, 0, 0.4);
}

.shortcut-card:hover::before {
    opacity: 1;
}

.shortcut-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(244, 67, 54, 0.2));
    color: #ff9800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.1);
}

.shortcut-info h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--text);
    letter-spacing: -0.3px;
}

.shortcut-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Detail View (Logic Tree) */
.shortcuts-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.shortcuts-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.shortcut-title-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.shortcut-back-btn {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.shortcut-back-btn:hover {
    background: var(--border-light);
    transform: translateX(-3px);
}

.shortcut-title-nav h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text);
    font-weight: 800;
}

.shortcut-actions {
    display: flex;
    gap: 10px;
}

.shortcut-restart-btn {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: none;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.shortcut-restart-btn:hover {
    background: #e74c3c;
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Node Container */
.shortcut-node-container {
    background: var(--glass-strong);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 35px;
    box-shadow: var(--shadow-sm), inset 0 2px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Breadcrumbs Flowchart */
.shortcut-breadcrumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px dashed rgba(255, 152, 0, 0.3);
}

.breadcrumb-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    animation: fadeIn 0.3s ease forwards;
}

.breadcrumb-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 6px;
    bottom: -18px;
    width: 2px;
    background: rgba(255, 152, 0, 0.25);
}

.breadcrumb-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff9800;
    margin-top: 8px;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
    position: relative;
    z-index: 1;
}

.breadcrumb-content {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.02);
    padding: 12px 16px;
    border-radius: 12px;
    flex: 1;
    border: 1px solid var(--border-light);
}

.dark-mode .breadcrumb-content {
    background: rgba(255, 255, 255, 0.03);
}

.breadcrumb-q {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.breadcrumb-a {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ff9800;
}


/* Question State */
.shortcut-question {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 30px;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.shortcut-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shortcut-option-btn {
    background: var(--bg);
    border: 2px solid var(--border);
    color: var(--text);
    padding: 18px 24px;
    border-radius: var(--radius-md);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.shortcut-option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 152, 0, 0.1), transparent);
    transition: opacity 0.3s;
    opacity: 0;
}

.shortcut-option-btn:hover {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.shortcut-option-btn:hover::before {
    opacity: 1;
    animation: shine 1.5s infinite;
}

.shortcut-option-btn:active {
    transform: translateY(0);
}

.shortcut-option-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-muted);
}

.dark-mode .shortcut-option-icon {
    background: rgba(255, 255, 255, 0.1);
}

.shortcut-option-btn:hover .shortcut-option-icon {
    background: #ff9800;
    color: white;
}


/* Result State */
.shortcut-result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
    padding: 20px 0;
}

.shortcut-result-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 191, 165, 0.2), rgba(0, 191, 165, 0.05));
    color: #00bfa5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 5px;
    animation: scaleBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 30px rgba(0, 191, 165, 0.2);
}

.shortcut-result-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #00bfa5;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.shortcut-result-details {
    background: var(--bg);
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 191, 165, 0.3);
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: left;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}


/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleBounce {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}