@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Color Palette */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
}

/* Ensure padding and border are included in element width */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .logo a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.25rem;
    display: inline-block;
}

.logo-img {
    height: 85px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(44, 62, 80, 0.95);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 160px;
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dropdown-content li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 8px;
}

.dropdown-content li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

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

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}

.cta-button:hover {
    background-color: #f1f1f1;
}

/* Pages */
.apps-page, .about-page {
    padding: 2rem;
}

.app {
    margin-bottom: 2rem;
}

.app-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.app-link:hover {
    text-decoration: underline;
}

/* App detail pages */
.app-detail {
    text-align: center;
    color: #fff;
}

.app-logo {
    max-width: 200px;
    margin: 1rem 0;
    border-radius: 22%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.app-detail ul {
    list-style-position: inside;
    padding-left: 0;
    margin-left: 0;
    text-align: left;
}

.app-detail .section-title {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--secondary-color);
    color: #fff;
    margin-top: auto;
}

/* Support Button */
.support-button {
    background-color: #fff;
    color: var(--secondary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.support-button:hover {
    background-color: #e6e6e6;
}

.disabled-link {
    color: gray;
    pointer-events: none;
    text-decoration: none;
}

/* Story Section */
.story-section {
    margin: 2rem 0;
}

.story-collapse {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
}

.story-collapse summary {
    font-weight: 500;
    font-size: 1.25rem;
    cursor: pointer;
    color: #fff;
    outline: none;
}

.story-collapse p {
    margin-top: 0.5rem;
    color: #fff;
}

.story-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.story-collapse[open] .story-content {
    max-height: 200px;
    opacity: 1;
}
