/* AppFoundary CSS */
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Prosto+One&family=Ubuntu+Mono:wght@400;700&display=swap');

/* Color Palette */
:root {
    --color-primary: #16697A;
    --color-secondary: #489FB5;
    --color-tertiary: #82C0CC;
    --color-background: #EDE7E3;
    --color-accent: #FFA62B;
    --color-text: #16697A;
    --color-text-light: #489FB5;
}

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

body {
    font-family: 'Ubuntu Mono', monospace;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-background);
}

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

a:hover {
    text-decoration: underline;
}

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

/* Header */
.header {
    background: white;
    border-bottom: 2px solid var(--color-tertiary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(22, 105, 122, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-family: 'Prosto One', cursive;
    font-size: 1.75rem;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    margin: 0;
}

.logo a {
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.nav a {
    color: var(--color-primary);
    font-weight: 700;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.btn-nav {
    background: var(--color-accent);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.2s;
    font-weight: 700;
}

.btn-nav:hover {
    background: #e69520;
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-family: 'Prosto One', cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background: #e69520;
    text-decoration: none;
}

.btn-secondary {
    background: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--color-primary);
    text-decoration: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Sections */
.reviews-section,
.form-section {
    padding: 3rem 0;
}

.section-title {
    font-family: 'Prosto One', cursive;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-primary);
}

.no-reviews {
    text-align: center;
    color: #64748b;
    padding: 3rem 0;
    font-size: 1.125rem;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.app-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.app-icon-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.app-icon-placeholder span {
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.app-name {
    font-family: 'Prosto One', cursive;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.app-category {
    color: var(--color-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.app-summary {
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.app-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.store-link,
.btn-youtube {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s;
}

.store-link.ios {
    background: #000000;
    color: white;
}

.store-link.ios:hover {
    background: #333333;
    text-decoration: none;
}

.store-link.android {
    background: #3ddc84;
    color: #1e293b;
}

.store-link.android:hover {
    background: #2fc470;
    text-decoration: none;
}

.btn-youtube {
    background: #ff0000;
    color: white;
}

.btn-youtube:hover {
    background: #cc0000;
    text-decoration: none;
}

.review-date {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

/* Filter Section */
.filter-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-form label {
    font-weight: 600;
    color: #475569;
}

.filter-form select {
    padding: 0.5rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
}

/* Forms */
.submission-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-intro {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #334155;
}

.required {
    color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 166, 43, 0.2);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.875rem;
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Messages */
.success-message {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.success-message h2 {
    color: #065f46;
    margin-bottom: 1rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.error-message {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--color-primary);
    color: var(--color-tertiary);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Prosto One', cursive;
    color: white;
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--color-tertiary);
}

.footer-section a:hover {
    color: var(--color-accent);
}

.ad-placeholder {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    color: var(--color-tertiary);
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-secondary);
    color: var(--color-tertiary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

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

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

    .nav {
        width: 100%;
        justify-content: center;
    }

    .header-content {
        justify-content: center;
        text-align: center;
    }

    .submission-form {
        padding: 1.5rem;
    }

    .success-actions {
        flex-direction: column;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
}