/* ============================================
   Create Content Modal — Apple-inspired action sheet
   ============================================ */

/* Dialog sizing */
.create-modal-dialog {
    max-width: 400px;
}

/* Content container */
.create-modal-content {
    border: none !important;
    border-radius: 1rem !important;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    background: var(--bs-body-bg) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.create-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.25rem 0.5rem;
}

.create-modal-title {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--bs-body-color);
    margin: 0;
}

/* Close button */
.create-modal-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--bs-body-tertiary-bg);
    color: var(--bs-secondary-color);
    font-size: 0.6875rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.create-modal-close:hover {
    background: var(--bs-body-secondary-bg);
    color: var(--bs-body-color);
}

/* Body */
.create-modal-body {
    padding: 0.375rem 0 0.5rem;
}

/* Option row */
.create-modal-option {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--bs-body-color);
    border-bottom: 1px solid rgba(var(--bs-body-color-rgb), 0.06);
    transition: background 0.15s ease;
}

.create-modal-option:last-child {
    border-bottom: none;
}

.create-modal-option:hover {
    background: var(--bs-body-tertiary-bg);
    color: var(--bs-body-color);
    text-decoration: none;
}

.create-modal-option:active {
    background: var(--bs-body-secondary-bg);
}

/* Icon tile */
.create-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.create-modal-icon-primary {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

.create-modal-icon-success {
    background: rgba(var(--bs-success-rgb), 0.1);
    color: var(--bs-success);
}

.create-modal-icon-warning {
    background: rgba(var(--bs-warning-rgb), 0.1);
    color: var(--bs-warning);
}

.create-modal-icon-info {
    background: rgba(var(--bs-info-rgb), 0.1);
    color: var(--bs-info);
}

/* Text block */
.create-modal-option-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.create-modal-option-title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--bs-body-color);
}

.create-modal-option-desc {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--bs-secondary-color);
}

/* Chevron */
.create-modal-chevron {
    font-size: 0.625rem;
    color: var(--bs-secondary-color);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.create-modal-option:hover .create-modal-chevron {
    transform: translateX(2px);
    color: var(--bs-body-color);
}

/* ---- Modal entrance animation ---- */
#createContentModal .modal-dialog {
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

#createContentModal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 576px) {
    .create-modal-dialog {
        max-width: calc(100% - 2rem);
        margin: 1rem;
    }

    .create-modal-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .create-modal-option {
        padding: 0.625rem 1rem;
        gap: 0.75rem;
    }
}
