/* Fonts */
@font-face {
    font-family: 'DTGetaiGroteskDisplay';
    src: url('/fonts/DTGetaiGroteskDisplay-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'DMMono';
    src: url('/fonts/DMMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'DMMono';
    src: url('/fonts/DMMono-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

:root {
    --bg-color: #f5f5f5;
    --text-color: #000;
    --highlight-purple: #E652E4;
    --highlight-yellow: #ECAF34;
    --highlight-blue: #4892EA;
    --highlight-green: #1BB36A;
    --tag-bg: #e0e0e0;
    --app-image-bg: #d4c5b0;
    --header-padding-top: max(1.5rem, env(safe-area-inset-top));
    --header-padding-bottom: 1.5rem;
    --logo-height: 1.5rem;
    --header-height: calc(var(--header-padding-top) + var(--logo-height) + var(--header-padding-bottom));
}

body {
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    /* Prevent iOS Safari from causing layout shifts */
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Header */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    padding: var(--header-padding-bottom) 0;
    padding-top: var(--header-padding-top);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0) !important; /* Force hardware acceleration and prevent shifts */
    transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden; /* Prevent visual glitches */
    -webkit-backface-visibility: hidden;
    will-change: transform;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    height: var(--header-height);
}

header.scrolled {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

nav {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 1.5rem;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-family: 'DMMono', monospace;
    font-size: 1rem;
    font-weight: normal;
}

.nav-links a.active {
    text-decoration: underline;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Main content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    padding-top: var(--header-height);
    width: 100%;
    overflow-x: hidden;
}

/* Hero and intro wrapper - fills viewport height */
.hero-intro-wrapper {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Hero section */
.hero {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    border: 2.5px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16 / 9;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 1;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'DTGetaiGroteskDisplay', sans-serif;
    font-size: 2.2rem;
    text-align: center;
    font-weight: 900;
    line-height: 1.2;
    width: calc(100% - 64px);
    padding: 0 32px;
    box-sizing: border-box;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Intro section */
.intro {
    margin-bottom: 0;
    margin-top: 0;
}

.headline {
    font-family: 'DMMono', monospace;
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    text-align: center;
}

.brand-name {
    font-family: 'DTGetaiGroteskDisplay', sans-serif;
    font-weight: 900;
}

.description {
    font-family: 'DMMono', monospace;
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0;
    line-height: 1.6;
    text-align: center;
}

.highlight {
    padding: 2px 4px;
    border-radius: 3px;
}

.highlight.purple {
    background-color: var(--highlight-purple);
}

.highlight.yellow {
    background-color: var(--highlight-yellow);
}

.highlight.blue {
    background-color: var(--highlight-blue);
}

.highlight.green {
    background-color: var(--highlight-green);
}

/* Apps grid */
.sorting-controls {
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.sort-dropdown {
    position: relative;
    display: inline-block;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}

.search-container {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-input {
    font-family: 'DMMono', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    width: 100%;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--text-color);
}

.search-input::placeholder {
    color: #999;
}

.search-input:hover {
    border-color: #999;
}

.search-input:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(72, 146, 234, 0.2);
}

.sort-button {
    font-family: 'DMMono', monospace;
    font-weight: 500;
    font-size: 0.9rem;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sort-button:hover {
    border-color: #999;
}

.sort-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(72, 146, 234, 0.2);
}

.sort-button-text {
    color: var(--text-color);
}

.sort-button-arrow {
    font-size: 0.7rem;
    color: #666;
    transition: transform 0.2s;
}

.sort-dropdown.active .sort-button-arrow {
    transform: rotate(180deg);
}

.sort-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 100;
}

.sort-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option {
    font-family: 'DMMono', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.sort-option:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.sort-option:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.sort-option:hover {
    background-color: #f5f5f5;
}

.sort-option.active {
    background-color: #f0f0f0;
    font-weight: 500;
}

.sort-option:focus {
    outline: none;
    background-color: #f5f5f5;
}

/* Filter dropdown */
.filter-button {
    font-family: 'DMMono', monospace;
    font-weight: 500;
    font-size: 0.9rem;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-button:hover {
    border-color: #999;
}

.filter-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(72, 146, 234, 0.2);
}

.filter-button-text {
    color: var(--text-color);
}

.filter-button-arrow {
    font-size: 0.7rem;
    color: #666;
    transition: transform 0.2s;
}

.filter-dropdown.active .filter-button-arrow {
    transform: rotate(180deg);
}

.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 100;
}

.filter-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-options-container {
    max-height: 300px; /* Approximately 10 items at ~30px each */
    overflow-y: auto;
    padding: 0.5rem 0;
}

/* Custom scrollbar for filter options */
.filter-options-container::-webkit-scrollbar {
    width: 8px;
}

.filter-options-container::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.filter-options-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.filter-options-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.filter-option {
    font-family: 'DMMono', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--text-color);
    transition: background-color 0.2s;
    gap: 0.5rem;
}

.filter-option:hover {
    background-color: #f5f5f5;
}

.filter-checkbox {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--highlight-blue);
}

.filter-option span {
    flex: 1;
}

/* Selected filters display */
.selected-filters:empty {
    display: none;
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.selected-filters:not(:empty) {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.filter-chip {
    font-family: 'DMMono', monospace;
    font-weight: 400;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.4rem 0.75rem;
    color: var(--text-color);
}

.filter-chip-remove {
    background: none;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    margin: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.filter-chip-remove:hover {
    color: #000;
}

.filter-chip-remove:focus {
    outline: none;
    color: #000;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: calc((100vw - 900px) / 2 - 1rem - 48px);
    width: 48px;
    height: 48px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.2s;
    z-index: 999;
    font-family: 'DMMono', monospace;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(72, 146, 234, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .back-to-top {
        right: 1rem;
        bottom: 1.5rem;
    }
}

.app-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-card.full-width {
    grid-column: 1 / -1;
}

.app-card.full-width .app-image {
    height: auto;
    aspect-ratio: 16 / 9;
}

.app-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px 4px 0 4px;
}

.app-image img {
    width: calc(100% - 8px);
    height: calc(100% - 4px);
    object-fit: cover;
    object-position: top;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.app-content {
    padding: 1rem;
}

.app-name {
    font-family: 'DMMono', monospace;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.app-description {
    font-family: 'DMMono', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-color);
}

/* App detail page */
main:has(.app-detail) {
    padding-top: calc(var(--header-height) - 1.5rem);
}

.app-detail {
    width: 100%;
    max-width: 100%;
    margin-bottom: 3rem;
}

.app-header {
    text-align: left;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.app-detail-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    margin-top: 0;
    margin-bottom: 0.25rem;
    border-radius: 8px;
}

.app-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.app-detail-name {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.app-website-button {
    font-family: 'DMMono', monospace;
    font-weight: 500;
    font-size: 0.9rem;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    display: inline-block;
}

.app-website-button:hover {
    border-color: #999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-detail-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.app-tag {
    font-family: 'DMMono', monospace;
    font-weight: 400;
    display: inline-block;
    background-color: var(--tag-bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.app-content-detail {
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-line;
}

.app-content-detail p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-line;
}

.app-description-detail {
    font-family: 'DMMono', monospace;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-line;
}

/* Page content */
.page-content {
    width: 100%;
    max-width: 100%;
    padding: 2rem 0;
}

.page-content h1 {
    font-family: 'DMMono', monospace;
    font-weight: 500;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.page-content p {
    font-family: 'DMMono', monospace;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Blog page */
.blog-container {
    width: 100%;
    max-width: 100%;
    margin-bottom: 3rem;
    padding-top: 2rem;
}


.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.blog-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-2px);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-card-title {
    font-family: 'DMMono', monospace;
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.4;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-date {
    font-family: 'DMMono', monospace;
    font-weight: 400;
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

/* Blog post detail page */
.blog-post {
    width: 100%;
    max-width: 100%;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.blog-post-title {
    font-family: 'DMMono', monospace;
    font-weight: 500;
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-post-date {
    font-family: 'DMMono', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

.blog-post-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-content {
    margin-top: 2rem;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
    font-family: 'DMMono', monospace;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-post-content h1:first-child,
.blog-post-content h2:first-child,
.blog-post-content h3:first-child,
.blog-post-content h4:first-child,
.blog-post-content h5:first-child,
.blog-post-content h6:first-child {
    margin-top: 0;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    font-family: 'DMMono', monospace;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
}

.blog-post-content p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --header-padding-top: max(1rem, env(safe-area-inset-top));
        --header-padding-bottom: 1rem;
        --header-height: calc(var(--header-padding-top) + var(--logo-height) + var(--header-padding-bottom) + 2rem); /* Extra space for stacked nav */
    }
    
    header {
        padding: var(--header-padding-bottom) 0;
        padding-top: var(--header-padding-top);
        overflow: hidden; /* Prevent content from being cut off */
        height: var(--header-height);
    }
    
    header nav {
        min-height: 100%;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 0 1rem;
    }
    
    header nav {
        padding: 0 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 1rem;
        flex-wrap: wrap;
    }

    main {
        padding-top: var(--header-height);
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-intro-wrapper {
        min-height: calc(100vh - var(--header-height) - 2rem);
        padding-top: 2rem;
        padding-bottom: 1.5rem;
        margin-top: 0;
        justify-content: flex-start;
        position: relative;
    }
    
    .hero {
        margin-top: 0;
        margin-bottom: 1.5rem;
        width: 100%;
        position: relative;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .search-container {
        max-width: 100%;
        order: 2;
    }

    .filter-dropdown {
        order: 1;
        width: 100%;
    }

    .filter-button {
        width: 100%;
        justify-content: space-between;
    }

    .sort-dropdown {
        order: 3;
        width: 100%;
    }

    .sort-button {
        width: 100%;
        justify-content: space-between;
    }

    .hero-text {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .headline {
        font-size: 1.2rem;
    }

    .description {
        font-size: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-content {
        padding: 2rem 1rem;
    }
    
    .blog-container {
        padding: 0 1rem;
    }
    
    .blog-post {
        padding: 0 1rem;
    }
    
    .app-detail {
        padding: 0 1rem;
    }
}

/* Footer */
footer {
    max-width: 900px;
    margin: 3rem auto 3rem;
    padding: 0;
    background-color: var(--bg-color);
    border-top: 1px solid #e0e0e0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-sizing: border-box;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin: 0;
}

.footer-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 0;
    width: 100%;
}

.footer-top a {
    font-family: 'DMMono', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-color);
    text-decoration: none;
}

.footer-top a:hover {
    text-decoration: underline;
}

.copyright {
    font-family: 'DMMono', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-color);
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    padding: 2rem 0;
    margin: 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 2rem;
    border-right: 1px solid #e0e0e0;
}

.footer-brand-name {
    font-family: 'DMMono', monospace;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    border-right: 1px solid #e0e0e0;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    font-family: 'DMMono', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-color);
    line-height: 1.5;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding-left: 2rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: opacity 0.2s;
}

.footer-social a:hover {
    opacity: 0.7;
}

.footer-social img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .app-detail-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1;
        object-fit: contain;
    }

    .app-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .app-detail-name {
        font-size: 1.5rem;
    }

    .app-website-button {
        width: 100%;
        text-align: center;
    }

    .app-detail-tags {
        justify-content: flex-start;
    }

    footer {
        padding: 0;
    }

    main {
        padding: 0 1rem;
    }

    .footer-top {
        padding: 1.5rem 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-bottom {
        padding: 2rem 1rem;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-brand {
        border-right: none;
        padding-right: 0;
        padding-bottom: 2rem;
        border-bottom: 1px solid #e0e0e0;
    }

    .footer-logo-container {
        border-right: none;
        padding: 2rem 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .footer-social {
        justify-content: center;
        padding-left: 0;
        padding-top: 2rem;
    }
}
