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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Navigation Bar */
.navbar {
    background-color: #ffffff;
    padding: 1.25rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-app-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #B8860B;
}

.nav-download-btn {
    background-color: #B8860B;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.nav-download-btn:hover {
    background-color: #9A7009;
}

/* Legacy classes for compatibility */
.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.app-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Menu Button */
.menu-button {
    background-color: #B8860B;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: background-color 0.3s ease;
    padding: 0;
}

.menu-button:hover {
    background-color: #9A7009;
}

.menu-button:active {
    background-color: #7C5907;
}

.menu-icon {
    width: 18px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-button.active .menu-icon:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-button.active .menu-icon:nth-child(2) {
    opacity: 0;
}

.menu-button.active .menu-icon:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Dropdown Menu */
.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 220px;
    margin-top: 0.5rem;
    margin-right: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.menu-item {
    display: block;
    padding: 0.875rem 1.25rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.menu-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.menu-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

.menu-item.active {
    background-color: #B8860B;
    color: #ffffff;
    font-weight: 500;
}

.menu-item.active:hover {
    background-color: #9A7009;
}

/* Main Container */
.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

main h1 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.content h2 {
    font-size: 1.375rem;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content h2:first-of-type {
    margin-top: 1.5rem;
}

.content p {
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.7;
}

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

.content li {
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.7;
}

.content strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #B8860B;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #9A7009;
    text-decoration: underline;
}

.footer-email {
    color: #666;
    margin-top: 1rem;
}

.footer-email a {
    color: #B8860B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email a:hover {
    color: #9A7009;
    text-decoration: underline;
}

/* Legacy footer styles for compatibility */
.footer-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-title {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-download-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }

    .nav-container {
        padding: 0;
    }

    .app-icon {
        width: 36px;
        height: 36px;
    }

    .app-name {
        font-size: 1rem;
    }

    .menu-button {
        width: 40px;
        height: 40px;
    }

    .menu-dropdown {
        margin-right: 1rem;
        min-width: 200px;
    }

    .footer-links a {
        display: block;
        margin: 0.5rem 0;
    }

    .container {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    main h1 {
        font-size: 1.75rem;
    }

    .content {
        padding: 1.5rem;
    }

    .content h2 {
        font-size: 1.25rem;
    }

    .footer {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.875rem 1rem;
    }

    .nav-app-icon {
        width: 36px;
        height: 36px;
    }

    .nav-app-name {
        font-size: 1.125rem;
    }

    .nav-download-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .nav-container {
        padding: 0;
    }

    .app-icon {
        width: 32px;
        height: 32px;
    }

    .app-name {
        font-size: 0.9375rem;
    }

    .menu-button {
        width: 38px;
        height: 38px;
    }

    .menu-icon {
        width: 16px;
    }

    .menu-dropdown {
        margin-right: 0.875rem;
        min-width: 180px;
    }

    .container {
        margin: 1rem auto;
        padding: 0 0.875rem;
    }

    main h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .content {
        padding: 1.25rem;
    }

    .content h2 {
        font-size: 1.125rem;
        margin-top: 1.5rem;
    }

    .content ul {
        padding-left: 1.25rem;
    }

    .footer {
        padding: 1.25rem 0.875rem;
        margin-top: 1.5rem;
    }

    .footer-title {
        font-size: 0.8125rem;
    }

    .footer-email {
        font-size: 0.9375rem;
    }
}
