/* --- 0. CSS Variables & Global Reset (Advanced) --- */
:root {
    --primary-color: #007bff;     /* Blue */
    --success-color: #28a745;     /* Green */
    --text-color: #343a40;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --border-color: #e9ecef;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* --- Container & Layout --- */
body > * {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- 1. Headings & Typography --- */
h1 {
    font-size: 2.2em;
    color: var(--primary-color);
    text-align: center;
    padding-top: 30px;
    margin-bottom: 10px;
    font-weight: 700;
}

h2 {
    font-size: 1.6em;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 600;
}

h3 {
    font-size: 1.3em;
    color: var(--text-color);
}

h4 {
    font-size: 1.1em;
    color: var(--primary-color);
    margin-top: 15px;
    margin-bottom: 5px;
}

/* --- 2. App Header & Download Box --- */
.app-header {
    background-color: var(--card-background);
    padding: 10px 0;
    margin-bottom: 25px;
    box-shadow: var(--shadow-light);
}

.download-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    border-radius: var(--border-radius);
    background-color: #f8f8ff; /* Lightest blue background */
    text-align: center;
    margin: 20px auto;
    border: 1px solid var(--primary-color);
}

.app-icon-display {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed);
}

.app-icon-display:hover {
    transform: scale(1.05);
}

.download-button {
    display: inline-block;
    padding: 14px 30px;
    font-size: 1.15em;
    font-weight: bold;
    color: white;
    background-color: var(--success-color);
    border-radius: 50px;
    text-decoration: none;
    transition: background-color var(--transition-speed), transform 0.2s;
    margin-top: 20px;
}

.download-button:hover {
    background-color: #1f8b3d;
    transform: translateY(-2px);
}

/* --- 3. App Info Section (Table) --- */
.app-info-section {
    padding: 20px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 25px;
}

.app-info-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.app-info-section th, .app-info-section td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.app-info-section th {
    background-color: #f5f5f5;
    width: 45%;
    font-weight: 600;
    color: var(--text-color);
}

/* --- 4. Content Sections & Typography --- */
.content-section {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 20px;
    transition: box-shadow var(--transition-speed);
}

.content-section:hover {
    box-shadow: var(--shadow-hover);
}

/* Lists (Features, Pros, Cons) */
.content-section ul {
    list-style: none; /* Custom styling ke liye default bullet hatana */
    padding-left: 0;
}

.content-section li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}
.content-section li:before {
    content: "✅"; /* Custom bullet point */
    color: var(--success-color);
    font-size: 0.9em;
    position: absolute;
    left: 0;
    top: 2px;
}

/* FAQ List */
.faq-list h4 {
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
    background-color: #fcfdff;
    padding: 8px 10px;
    border-radius: 4px;
}
.faq-list p {
    margin-bottom: 20px;
    padding-left: 15px;
}

/* --- 5. Gallery Container (Grid/Flexbox) --- */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive grid */
    gap: 15px;
    margin-top: 20px;
}

.gallery-container img {
    width: 100%;
    height: 250px; /* Fixed height for consistent look */
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.gallery-container img:hover {
    transform: scale(1.03);
}

/* --- 6. Form/Index Page Styles --- */
/* (Previous submit_app.php CSS se relevant styles yahan aayenge, jaise .app-card, .message-success, etc.) */

.app-card {
    background: var(--card-background);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow var(--transition-speed);
}
.app-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.app-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.3em;
}
.app-meta span {
    margin-right: 15px;
    font-size: 0.95em;
    color: #6c757d;
}

/* --- 7. Footer --- */
hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
    margin: 40px 0;
}

p {
    margin-bottom: 1em;
}

/* --- 8. Mobile Responsiveness --- */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    body > * {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    .download-box {
        padding: 20px 15px;
        margin: 15px auto;
    }

    /* Stack table data */
    .app-info-section th, 
    .app-info-section td {
        display: block; 
        width: 100%;
        box-sizing: border-box;
    }
    .app-info-section th {
        background-color: #f1f1f1;
        border-bottom: none;
        padding-bottom: 0;
        font-weight: 700;
    }
    .app-info-section td {
        border-top: none;
        margin-bottom: 10px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    .gallery-container img {
         height: 180px;
    }
}