/* 
    Memory Match Styles 
    Aesthetic: Clean, modern, and playful.
*/

:root {
    --primary-color: #4A90E2;
    --primary-hover: #357ABD;
    --bg-color: #F9FAFB;
    --text-color: #1F2937;
    --text-muted: #6B7280;
    --white: #FFFFFF;
    --accent-color: #10B981;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 16px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    padding: 3rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, #E0F2FE 0%, #DBEAFE 100%);
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.nav-back {
    margin-bottom: 2rem;
    text-align: left;
}

.nav-back a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    font-size: 0.9rem;
}

.nav-back a:hover {
    opacity: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.hero .tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* Sections */
main {
    padding: 4rem 0;
}

section {
    margin-bottom: 5rem;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.support-section {
    text-align: center;
}

.support-section p {
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Gallery Section */
.screenshots-section {
    padding: 2rem 0;
    overflow-x: hidden;
}

.gallery {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0 2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-item {
    flex: 0 0 280px;
    scroll-snap-align: center;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.gallery::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.gallery {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Privacy Section */
.privacy-section .container {
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.privacy-table td {
    padding: 1.25rem 0;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: top;
    text-align: left;
}

.privacy-table td.icon {
    width: 40px;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4;
}

.privacy-table strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.privacy-table span {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 4rem 0 3rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .privacy-section .container {
        padding: 2.5rem 1.5rem;
    }

    .privacy-content p {
        font-size: 1rem;
    }

    .privacy-table td {
        padding: 1rem 0;
    }

    .privacy-table td.icon {
        width: 32px;
    }

    .privacy-table strong {
        font-size: 1rem;
    }

    .privacy-table span {
        font-size: 0.95rem;
    }
}
