/* Portfolio Project Mockups */

/* --- General Variables --- */
:root {
    --cd-primary: #0ea5e9; /* Sky blue for Medical */
    --cd-sidebar: #0f172a; /* Slate 900 */
    --cd-bg: #f1f5f9;      /* Slate 100 */
    --acp-primary: #1e3a8a; /* Dark Blue for Agency */
    --acp-accent: #fbbf24;  /* Amber for Stars */
    --acp-bg: #e2e8f0;
}

/* --- ClinicDiary Mockup --- */
.cd-mockup-window {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    border: 1px solid #e2e8f0;
}

.cd-sidebar {
    width: 60px;
    background: var(--cd-sidebar);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15px;
    gap: 15px;
    flex-shrink: 0;
}

.cd-nav-item {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.cd-nav-item.active {
    background: var(--cd-primary);
    color: white;
}

.cd-main {
    flex: 1;
    background: var(--cd-bg);
    display: flex;
    flex-direction: column;
}

.cd-header {
    height: 40px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.cd-search-bar {
    width: 150px;
    height: 24px;
    background: var(--cd-bg);
    border-radius: 4px;
}

.cd-user-profile {
    width: 24px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 50%;
}

.cd-content {
    flex: 1;
    padding: 15px;
    overflow: hidden;
    position: relative;
}

/* Calendar View */
.cd-calendar-header {
    display: grid;
    grid-template-columns: 40px repeat(3, 1fr);
    margin-bottom: 10px;
    gap: 10px;
}

.cd-col-head {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    text-align: center;
}

.cd-schedule-grid {
    display: grid;
    grid-template-columns: 40px repeat(3, 1fr);
    gap: 10px;
    height: 100%;
}

.cd-time-labels {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: -6px; /* Align with top of row */
}

.cd-time {
    font-size: 10px;
    color: #94a3b8;
    text-align: right;
    padding-right: 5px;
}

.cd-day-col {
    position: relative;
    border-left: 1px solid #e2e8f0;
    height: 100%;
}

.cd-appt-card {
    position: absolute;
    left: 4px;
    right: 4px;
    background: white;
    border-left: 3px solid var(--cd-primary);
    border-radius: 4px;
    padding: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 9px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cd-appt-name {
    font-weight: 700;
    color: #1e293b;
}

.cd-appt-type {
    color: #64748b;
    font-size: 8px;
}

.cd-appt-card.urgent {
    border-color: #ef4444;
}

.cd-appt-card.followup {
    border-color: #10b981;
}

/* --- AgencyCardPro Mockup --- */
.acp-mockup-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Using a Tablet/landscape layout rather than mobile to correct for Aspect Ratio */
.acp-window {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    display: flex;
    overflow: hidden;
}

.acp-left-panel {
    width: 140px;
    background: white;
    border-right: 1px solid #e2e8f0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.acp-logo-ph {
    height: 20px;
    background: var(--acp-primary);
    border-radius: 4px;
    width: 80%;
    margin-bottom: 10px;
    opacity: 0.9;
}

.acp-menu-item {
    height: 8px;
    background: #e2e8f0;
    border-radius: 2px;
    width: 100%;
}

.acp-menu-item.active {
    background: #bfdbfe;
    width: 60%;
}

.acp-main-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.acp-quote-card {
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    gap: 10px;
}

.acp-hotel-img {
    width: 60px;
    height: 45px;
    background: #cbd5e1; /* Placeholder grey */
    background-image: linear-gradient(135deg, #cbd5e1 25%, #94a3b8 25%, #94a3b8 50%, #cbd5e1 50%, #cbd5e1 75%, #94a3b8 75%, #94a3b8 100%);
    background-size: 10px 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

.acp-hotel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.acp-hotel-title {
    height: 8px;
    width: 70%;
    background: #334155;
    border-radius: 2px;
}

.acp-hotel-meta {
    height: 6px;
    width: 40%;
    background: #94a3b8;
    border-radius: 2px;
}

.acp-stars {
    display: flex;
    gap: 2px;
}

.acp-star {
    width: 6px;
    height: 6px;
    background: var(--acp-accent);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.acp-price-tag {
    align-self: flex-start;
    background: #ecfccb;
    color: #365314;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 2px;
}

/* Floating "Mobile" Abstract - to hint at mobile friendliness */
.acp-mobile-float {
    position: absolute;
    right: 10px;
    bottom: -10px;
    width: 60px;
    height: 100px;
    background: var(--acp-primary);
    border-radius: 8px;
    border: 2px solid white;
    box-shadow: -5px -5px 20px rgba(0,0,0,0.1);
    transform: rotate(-10deg);
}

/* --- Swap.Htmx Code Editor Mockup --- */
:root {
    --swap-bg: #1e1e2e;
    --swap-sidebar: #181825;
    --swap-accent: #89b4fa;
    --swap-keyword: #cba6f7;
    --swap-method: #89dceb;
    --swap-string: #a6e3a1;
    --swap-text: #cdd6f4;
    --swap-line-num: #6c7086;
}

.swap-mockup-window {
    width: 100%;
    height: 100%;
    background: var(--swap-bg);
    border-radius: 8px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    border: 1px solid #313244;
    position: relative;
}

.swap-titlebar {
    height: 36px;
    background: var(--swap-sidebar);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
    border-bottom: 1px solid #313244;
}

.swap-dots {
    display: flex;
    gap: 6px;
}

.swap-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.swap-dots .dot.red { background: #f38ba8; }
.swap-dots .dot.yellow { background: #f9e2af; }
.swap-dots .dot.green { background: #a6e3a1; }

.swap-filename {
    font-size: 11px;
    color: var(--swap-text);
    opacity: 0.7;
}

.swap-editor {
    flex: 1;
    display: flex;
    padding: 12px 0;
    overflow: hidden;
}

.swap-line-numbers {
    width: 36px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 12px;
    font-size: 11px;
    color: var(--swap-line-num);
    line-height: 1.6;
    user-select: none;
}

.swap-code {
    flex: 1;
    padding-left: 12px;
    border-left: 1px solid #313244;
    font-size: 11px;
    line-height: 1.6;
    color: var(--swap-text);
    overflow: hidden;
}

.swap-code-line {
    white-space: nowrap;
}

.swap-code-line.indent {
    padding-left: 16px;
}

.swap-code .keyword {
    color: var(--swap-keyword);
}

.swap-code .method {
    color: var(--swap-method);
}

.swap-code .string {
    color: var(--swap-string);
}

.swap-toast {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: linear-gradient(135deg, #a6e3a1, #94e2d5);
    color: #1e1e2e;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(166, 227, 161, 0.3);
    animation: toastPop 0.3s ease-out;
}

@keyframes toastPop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Project links styling */
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 4px;
}

.project-links .btn-link {
    margin-top: 0;
}

.project-links .github-link {
    font-weight: 600;
}

.project-links .github-link i {
    font-size: 1.1em;
}

/* --- AppHive Logo (CSS/SVG wrapper classes) --- */
.logo-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 5px;
}
