/* ============================================================
   Sam personal pages  (/sam, /sam/resume, /sam/contact, /sam/e64)
   Isolated from application CSS -- all classes prefixed sam-
   ============================================================ */

/* --- shared layout ----------------------------------------- */

.sam-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #222;
    line-height: 1.6;
}

.sam-page a {
    color: #1a6fb5;
    text-decoration: none;
}

.sam-page a:hover {
    text-decoration: underline;
}

.sam-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
}

.sam-back:hover {
    color: #1a6fb5;
}

.sam-page-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #1a1a1a;
}

.sam-page-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 1.5rem;
}

.sam-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 1.5rem 0;
}

/* --- home page --------------------------------------------- */

.sam-hero {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.sam-hero-photo {
    flex: 0 0 auto;
}

.sam-hero-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ccc;
}

.sam-hero-text {
    flex: 1 1 auto;
}

.sam-hero-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    color: #1a1a1a;
}

.sam-hero-title {
    font-size: 1.05rem;
    color: #555;
    margin: 0 0 1rem;
}

.sam-hero-bio {
    font-size: 0.95rem;
    color: #333;
    margin: 0;
}

/* photo strip below hero */
.sam-photo-strip {
    display: flex;
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sam-photo-card {
    text-align: center;
}

.sam-photo-card img {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #ddd;
}

.sam-photo-card--wide img {
    width: 468px;
}

.sam-photo-card .sam-photo-caption {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.4rem;
}

/* navigation cards */
.sam-nav-cards {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.sam-nav-card {
    flex: 1 1 200px;
    max-width: 280px;
    background: #f7f8fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.sam-nav-card:hover {
    border-color: #1a6fb5;
    box-shadow: 0 4px 16px rgba(26, 111, 181, 0.12);
    transform: translateY(-2px);
}

.sam-nav-card-icon {
    font-size: 2rem;
    color: #1a6fb5;
    margin-bottom: 0.5rem;
}

.sam-nav-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.sam-nav-card-desc {
    font-size: 0.85rem;
    color: #666;
}

/* --- contact page ------------------------------------------ */

.sam-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 480px;
}

.sam-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.sam-contact-icon {
    font-size: 1.2rem;
    color: #1a6fb5;
    width: 1.5rem;
    text-align: center;
}

/* --- E64 gallery ------------------------------------------- */

.sam-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.sam-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
    background: #f0f0f0;
}

.sam-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- resume (TextSnippet content) -------------------------- */

.sam-resume-content {
    font-size: 0.95rem;
    line-height: 1.7;
}

.sam-resume-placeholder {
    padding: 2rem;
    background: #f7f8fa;
    border: 1px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    color: #888;
    font-size: 0.95rem;
}

/* --- responsive -------------------------------------------- */

@media (max-width: 640px) {
    .sam-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sam-hero-photo img {
        width: 140px;
        height: 140px;
    }

    .sam-nav-cards {
        flex-direction: column;
        align-items: stretch;
    }

    .sam-nav-card {
        max-width: none;
    }

    .sam-photo-strip {
        gap: 0.75rem;
    }

    .sam-photo-card img {
        width: 120px;
        height: 120px;
    }
}
