/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles - Sticky & Responsive */
.main-header {
    background-color: #b92b27;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo-icon {
    width: 32px;
    border-radius: 5px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-telegram {
    background-color: #1c8adb;
    color: white;
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 2px solid white;
    transition: background 0.3s;
}

.btn-telegram:hover {
    background-color: #156fac;
}

.menu-toggle {
    background: transparent;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Navigation Styles */
.main-nav {
    background-color: white;
    border-bottom: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: #1a202c;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: #b92b27;
}

/* Main Content */
main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 15px;
    flex: 1; /* Pushes footer to bottom */
    width: 100%;
}

/* Featured Apps Grid (Home Page) */
.featured-apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.app-card {
    background: white;
    text-align: center;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-icon {
    width: 110px;
    border-radius: 18px;
    margin-bottom: 12px;
}

.app-card h2 {
    font-size: 20px;
    color: #2d3748;
    margin-bottom: 8px;
}

.stars {
    color: #f39c12;
    margin-bottom: 8px;
    font-size: 14px;
}

.verified {
    color: #38a169;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 20px;
}

.btn-download {
    display: block;
    background-color: #008000;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    transition: background 0.3s;
    box-shadow: 0 4px 6px rgba(72, 187, 120, 0.3);
}

.btn-download:hover {
    background-color: #38a169;
}

/* --- Post Page Styles --- */
.post-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.post-header {
    text-align: center;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.post-app-icon {
    width: 120px;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.post-title {
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 10px;
}

.large-btn {
    font-size: 18px;
    padding: 15px 30px;
    max-width: 350px;
    margin: 15px auto 0;
}

.post-content h2 {
    color: #b92b27;
    font-size: 22px;
    margin-bottom: 15px;
    margin-top: 25px;
}

.post-content h3 {
    color: #2d3748;
    font-size: 19px;
    margin-bottom: 12px;
    margin-top: 20px;
}

.post-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 15px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.info-table th, .info-table td {
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    text-align: left;
}

.info-table th {
    background-color: #f7fafc;
    color: #2d3748;
    width: 40%;
}

.info-table td {
    color: #4a5568;
    font-weight: 500;
}

/* Footer Styles */
.main-footer {
    background-color: #b92b27;
    color: #fff;
    text-align: center;
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-home-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-home-link:hover {
    color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .main-header {
        padding: 12px 15px;
    }
    
    .logo h1 {
        font-size: 20px;
    }

    .logo-icon {
        width: 28px;
    }

    .hide-mobile {
        display: none; 
    }

    .btn-telegram {
        padding: 6px 12px;
        border-radius: 5px;
    }
    
    .main-nav {
        display: none; 
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 0;
        padding: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid #edf2f7;
        width: 100%;
    }
    
    .main-nav a {
        justify-content: center;
        padding: 15px;
    }
    
    /* Post container mobile padding */
    .post-container {
        padding: 20px 15px;
    }
    .post-title {
        font-size: 24px;
    }
}