/* ============================================================
   KUBBEALTÍ ATÖLYE — App Detail & Privacy Stylesheet
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: #F9F9F7;
    color: #2C3E50;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    flex: 1;
}

/* === NAVBAR === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #F9F9F7;
    border-bottom: 1px solid rgba(85, 99, 83, 0.12);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo img {
    height: 38px;
    width: auto;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar-menu a {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2C3E50;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: #556353;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #2C3E50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* === APP HERO === */
.app-hero {
    padding: 3.5rem 0 3rem;
    border-bottom: 1px solid rgba(85, 99, 83, 0.1);
}

.app-hero-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.app-hero .app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    flex-shrink: 0;
    object-fit: contain;
}

.app-hero-text h1 {
    font-family: 'Noto Serif', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #2C3E50;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.app-hero-text .app-by {
    font-size: 0.875rem;
    font-weight: 600;
    color: #556353;
    letter-spacing: 0.03em;
}

/* === PROSE WRAPPER (narrow content column, left-aligned within container) === */
.prose {
    max-width: 700px;
}

/* === APP DESCRIPTION === */
.app-description {
    padding: 3rem 0;
}

.app-description p {
    font-size: 1rem;
    color: #4a5a4a;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.app-description p:last-of-type {
    margin-bottom: 0;
}

/* === FEATURES === */
.features-section {
    padding: 0 0 3rem;
}

.features-section h2 {
    font-family: 'Noto Serif', serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 1.25rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #4a5a4a;
    line-height: 1.55;
}

.features-list li .feat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #556353;
    flex-shrink: 0;
    margin-top: 0.45rem;
}

/* === SECTION DIVIDER === */
.section-divider {
    border: none;
    border-top: 1px solid rgba(85, 99, 83, 0.15);
    margin: 0;
}

/* === PRIVACY POLICY === */
.privacy-section {
    padding: 3.5rem 0 5rem;
}

.privacy-header {
    margin-bottom: 2.5rem;
}

.privacy-header h2 {
    font-family: 'Noto Serif', serif;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 0.35rem;
}

.privacy-header .updated {
    font-size: 0.8rem;
    color: #9aab9a;
    font-weight: 500;
}

.privacy-intro {
    font-size: 0.975rem;
    color: #4a5a4a;
    line-height: 1.85;
    margin-bottom: 2.5rem;
    padding: 1.25rem 1.5rem;
    background-color: rgba(85, 99, 83, 0.05);
    border-radius: 10px;
    border-left: 3px solid #556353;
}

.privacy-block {
    margin-bottom: 2.5rem;
}

.privacy-block h3 {
    font-family: 'Noto Serif', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(85, 99, 83, 0.18);
    counter-reset: none;
}

.privacy-block h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #556353;
    margin-bottom: 0.5rem;
    margin-top: 1.25rem;
    letter-spacing: 0.01em;
}

.privacy-block p {
    font-size: 0.925rem;
    color: #4a5a4a;
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.privacy-block ul {
    padding-left: 0;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.privacy-block ul li {
    font-size: 0.925rem;
    color: #4a5a4a;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
}

.privacy-block ul li::before {
    content: '–';
    position: absolute;
    left: 0.25rem;
    color: #556353;
    font-weight: 700;
}

.privacy-block a.mail-link {
    color: #556353;
    font-weight: 700;
    border-bottom: 1px solid rgba(85, 99, 83, 0.35);
    transition: color 0.2s, border-color 0.2s;
}

.privacy-block a.mail-link:hover {
    color: #3d4a3c;
    border-color: #3d4a3c;
}

.privacy-acceptance {
    margin-top: 3rem;
    background-color: rgba(85, 99, 83, 0.06);
    border-left: 3px solid #556353;
    border-radius: 0 10px 10px 0;
    padding: 1.1rem 1.5rem;
    font-size: 0.9rem;
    color: #4a5a4a;
    line-height: 1.7;
}

/* === FOOTER === */
.footer {
    background-color: #2C3E50;
    color: #e2e8f0;
    padding: 3rem 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-brand p {
    font-size: 0.85rem;
    color: #94a3b8;
    max-width: 260px;
    line-height: 1.65;
}

.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #C07E47;
}

.footer-bottom {
    padding: 1.25rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #475569;
}

/* === TABS === */
.app-tabs {
    background-color: #F9F9F7;
    border-bottom: 1px solid rgba(85, 99, 83, 0.12);
}

.tabs-inner {
    display: flex;
    gap: 0;
}

.tab-link {
    display: inline-block;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #8a9a8a;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.tab-link:hover {
    color: #2C3E50;
}

.tab-link.active {
    color: #556353;
    border-bottom-color: #556353;
}

/* === SCREENSHOTS === */
.screenshots-section {
    padding: 0 0 4.5rem;
}

.screenshots-heading {
    font-family: 'Noto Serif', serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 1.75rem;
    max-width: 700px;
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    box-shadow: 0 8px 28px rgba(44, 62, 80, 0.14);
    border: 1px solid rgba(85, 99, 83, 0.08);
}

.screenshot-caption {
    text-align: center;
    font-size: 0.78rem;
    color: #9aab9a;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar {
        position: relative;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        background-color: #F9F9F7;
        padding: 1.25rem 1.5rem 1.5rem;
        gap: 1.1rem;
        border-bottom: 1px solid rgba(85, 99, 83, 0.12);
        box-shadow: 0 8px 24px rgba(44, 62, 80, 0.08);
    }

    .navbar-menu.open {
        display: flex;
    }

    .app-hero {
        padding: 2.5rem 0 2rem;
    }

    .app-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .app-description {
        padding: 2rem 0;
    }

    .features-section {
        padding-bottom: 2rem;
    }

    .privacy-section {
        padding: 2.5rem 0 4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
}

@media (max-width: 480px) {
    .screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }

    .screenshot-item img {
        border-radius: 14px;
    }
}
