/* ===========================================
   ALMORAT - Personal Portfolio (shadcn style)
   =========================================== */

:root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5.9% 10%;
    --radius: 0.5rem;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

a {
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

/* ===========================================
   MAIN CONTAINER
   =========================================== */
.main-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* ===========================================
   AVATAR
   =========================================== */
.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: hsl(var(--muted));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    border: 2px solid hsl(var(--border));
}

/* ===========================================
   HEADER INFO
   =========================================== */
.header-info {
    text-align: center;
}

.header-info h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.bio {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: 320px;
}

/* ===========================================
   PROJECTS LIST
   =========================================== */
.projects-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    transition: all 0.2s ease;
    cursor: pointer;
}

.project-item:hover {
    background: hsl(var(--accent));
    border-color: hsl(var(--border));
}

.project-info {
    flex: 1;
    min-width: 0;
}

.project-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-desc {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    font-size: 0.625rem;
    padding: 0.125rem 0.5rem;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border-radius: 9999px;
    font-weight: 500;
}

.privacy-link {
    font-size: 0.625rem;
    color: hsl(var(--muted-foreground));
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-link:hover {
    color: hsl(var(--foreground));
    opacity: 1;
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===========================================
   CONTACT
   =========================================== */
.contact-section {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.contact-btn:hover {
    background: hsl(var(--accent));
    opacity: 1;
}

.contact-btn svg {
    width: 18px;
    height: 18px;
    color: hsl(var(--foreground));
}

/* ===========================================
   FOOTER
   =========================================== */
.footer-text {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
}

/* ===========================================
   PRIVACY POLICY PAGE
   =========================================== */
.page-container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

.page-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

.page-back:hover {
    color: hsl(var(--foreground));
    opacity: 1;
}

.page-back svg {
    width: 16px;
    height: 16px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-title-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
}

.page-subtitle {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

.page-content h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.page-content h2:first-of-type {
    margin-top: 0;
}

.page-content p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
    margin-bottom: 1rem;
}

.page-content ul {
    margin: 0.5rem 0 1rem 1.25rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.page-content li {
    margin-bottom: 0.375rem;
    line-height: 1.6;
}

.page-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.last-updated {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid hsl(var(--border));
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* ===========================================
   PROJECT DETAIL PAGE
   =========================================== */
.project-page {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.project-header-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.project-header-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-header-info h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

.project-tagline {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Screenshots Gallery */
.screenshots-section {
    margin-bottom: 2rem;
}

.screenshots-gallery {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--border)) transparent;
}

.screenshots-gallery::-webkit-scrollbar {
    height: 6px;
}

.screenshots-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.screenshots-gallery::-webkit-scrollbar-thumb {
    background: hsl(var(--border));
    border-radius: 3px;
}

.screenshot-item {
    flex-shrink: 0;
    width: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--muted));
}

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

/* Project Sections */
.project-section {
    margin-bottom: 2rem;
}

.project-section h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-section p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: hsl(var(--secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.feature-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.feature-content p {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

/* Project Links */
.project-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-action-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.project-action-link:hover {
    background: hsl(var(--accent));
    opacity: 1;
}

.project-action-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.project-action-link span {
    flex: 1;
}

.link-arrow {
    color: hsl(var(--muted-foreground));
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 480px) {
    body {
        padding: 1.5rem;
    }

    .main-container {
        gap: 1.25rem;
    }

    .avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .header-info h1 {
        font-size: 1.25rem;
    }

    .bio {
        font-size: 0.8125rem;
    }

    .project-item {
        padding: 0.875rem;
    }

    .project-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .project-header-icon {
        width: 48px;
        height: 48px;
    }

    .project-header-info h1 {
        font-size: 1.25rem;
    }

    .screenshot-item {
        width: 120px;
    }
}

/* Page with scroll (detail pages) */
body.page-scroll {
    overflow: auto;
    align-items: flex-start;
    min-height: 100vh;
    height: auto;
}

/* Hide elements not needed */
.navbar,
.hero,
.section,
.back-to-top,
.footer-links {
    display: none !important;
}
