/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-color: #000000;
    --text-light: #666666;
    --border-color: #f3f3f3;
    --success-color: #34C759;
    --error-color: #FF3B30;
    
    /* Tint color - hardcoded */
    --tint-color: #f3103b;
    --tint-color-dark: #c2082f;
    --tint-color-rgb: 243, 10, 59;
    --gradient-primary: linear-gradient(135deg, #f3103b 0%, #c2082f 100%);
}

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
	color: var(--tint-color);
	text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--tint-color);
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-links a.active {
    opacity: 1;
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    text-align: left;
    position: relative;
    background: #000000;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    max-width: 900px;
    color: var(--tint-color);
}

.hero p {
    font-size: 1.25rem;
    color: #FFFFFF;
    font-weight: 500;
    max-width: 600px;
}

/* Apps Section */
.apps-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

.apps-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2.5rem;
}

.app-category-section {
    margin-bottom: 4rem;
}

.app-category-section:last-child {
    margin-bottom: 0;
}

.app-category-header {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 3px;
}

.app-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.app-card-image {
    width: 100%;
    height: auto;
    border-radius: 23.5%;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    padding: 6px;
}

.app-card-content {
    padding: 0;
    position: relative;
}

.app-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-card-category {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.app-card-description {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.app-price-button {
    background-color: var(--tint-color);
    color: #FFFFFF;
    border: none;
    border-radius: 18px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: 80px;
    height: 36px;
    margin-top: 0.5rem;
    transition: background-color 0.2s ease;
}

.app-price-button:hover {
    background-color: var(--tint-color-dark);
}

.loading {
    text-align: left;
    padding: 2rem 0;
    font-size: 1rem;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.error {
    text-align: left;
    padding: 2rem 0;
    color: var(--error-color);
    grid-column: 1 / -1;
    font-size: 1rem;
}

/* Content Section (Privacy Policy) */
.content-section {
    padding: 6rem 0;
}

.content-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.last-updated {
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1rem;
    font-weight: 500;
}

.privacy-content {
    line-height: 1.8;
}

.privacy-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.privacy-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 400;
}

.privacy-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.privacy-content a {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: var(--text-light);
    transition: text-decoration-color 0.2s ease;
}

.privacy-content a:hover {
    text-decoration-color: var(--text-color);
}

/* Main content - flex grow to push footer down */
main {
    flex: 1 0 auto;
}

/* Footer */
footer {
    flex-shrink: 0;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    background: #000000;
}

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

footer p {
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 500;
}

footer a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.2s ease;
}

footer a:hover {
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .apps-section {
        padding: 4rem 0;
    }

    /* Navigation - vertical on mobile */
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0rem 0;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0rem 0;
    }

    .nav-brand h1 {
        font-size: 1.125rem;
    }

    footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .apps-section h2 {
        font-size: 1.75rem;
    }

    .nav-links {
        font-size: 0.9375rem;
    }
}
