:root {
    --apple-bg: #f5f5f7;
    --apple-glass: rgba(255, 255, 255, 0.7);
    --apple-text: #1d1d1f;
    --apple-blue: #0071e3;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--apple-bg);
    margin: 0;
    color: var(--apple-text);
}

/* Header Glassmorphism */
.main-header {
    position: sticky;
    top: 0;
    background: var(--apple-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo a {
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
    color: var(--apple-text);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--apple-text);
    font-size: 14px;
    opacity: 0.8;
    transition: 0.3s;
}

.nav-links a:hover { opacity: 1; color: var(--apple-blue); }

/* Footer Layout */
.main-footer {
    background: #fff;
    padding: 60px 20px 30px;
    margin-top: 50px;
    border-top: 1px solid #e5e5e7;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-logo { font-size: 20px; font-weight: 600; margin-bottom: 15px; }
.footer-col h3 { font-size: 14px; font-weight: 600; margin-bottom: 15px; text-transform: uppercase; color: #1d1d1f; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; font-size: 13px; color: #424245; }
.footer-col a { text-decoration: none; color: inherit; transition: 0.2s; }
.footer-col a:hover { color: #0071e3; }

/* Bottom Bar - THE FIX */
.footer-bottom {
    border-top: 1px solid #e5e5e7;
    padding-top: 20px;
}

.footer-bottom-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Isse text left aur icons right jayenge */
    align-items: center;
    flex-wrap: wrap; /* Mobile par automatic adjust hoga */
}

.copyright-text {
    font-size: 12px;
    color: #86868b;
}

.footer-social-links {
    display: flex;
    gap: 20px;
}

.footer-social-links a {
    color: #424245;
    font-size: 16px;
    transition: 0.3s;
}

.footer-social-links a:hover {
    color: #0071e3;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
/* Floating Telegram Button */
.telegram-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0088cc;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.telegram-float:hover { transform: scale(1.1); }

/* Container */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0;
}

.hero-section h1 { font-size: 48px; font-weight: 700; letter-spacing: -1px; }

/* Grid Layout */

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Apple Style Post Card */
.post-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.4s ease;
}

.post-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.post-img { position: relative; height: 180px; background: #eee; }
.post-img img { width: 100%; height: 100%; object-fit: cover; }

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--apple-glass);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.post-info { padding: 20px; }
.post-info h3 { margin: 0 0 10px; font-size: 18px; }

.view-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--apple-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
}

/* Pagination */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    padding: 10px 18px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: var(--apple-text);
    font-weight: 600;
    transition: 0.3s;
}

.page-btn.active { background: var(--apple-blue); color: #fff; }
.page-btn:hover:not(.active) { background: #e8e8ed; }

/* Glassmorphism Form Container */
.glass-form-container {
    max-width: 600px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.4);
}

.form-header { text-align: center; margin-bottom: 30px; }
.form-header h2 { font-size: 28px; font-weight: 600; margin-bottom: 5px; }
.form-header p { font-size: 14px; opacity: 0.6; }

/* Input Styling */
.input-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.input-group label { font-size: 14px; font-weight: 600; margin-bottom: 8px; margin-left: 5px; }

.apple-form input, .apple-form select, .apple-form textarea {
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #ddd;
    background: #fbfbfd;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.apple-form input:focus { border-color: var(--apple-blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1); }

/* Custom File Upload */
.file-upload-wrapper {
    border: 2px dashed #ccc;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    position: relative;
    background: #f5f5f7;
}

.file-upload-wrapper input { position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; cursor: pointer; }

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--apple-blue);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover { background: #0077ed; transform: scale(1.02); }

/* Dashboard & Tables */
.user-welcome { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.add-post-btn { background: var(--apple-blue); color: white; padding: 10px 20px; border-radius: 12px; text-decoration: none; font-weight: 600; }

.apple-card { background: white; border-radius: 20px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.apple-table { width: 100%; border-collapse: collapse; text-align: left; }
.apple-table th { padding: 15px; border-bottom: 1px solid #eee; font-size: 14px; color: #888; }
.apple-table td { padding: 15px; border-bottom: 1px solid #f9f9f9; font-size: 15px; }

.status-badge { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-badge.approved { background: #e2f9e1; color: #28a745; }
.status-badge.pending { background: #fff4e5; color: #ff9800; }

/* Profile Avatar */
.profile-header { text-align: center; margin-bottom: 20px; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid white; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin-bottom: 10px; }

.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-actions { margin-bottom: 15px; display: flex; gap: 10px; }
.apple-input-small { padding: 8px; border-radius: 8px; border: 1px solid #ddd; }
.apply-btn { background: #1d1d1f; color: white; border: none; padding: 8px 15px; border-radius: 8px; cursor: pointer; }

.admin-thumb { border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.edit-icon { color: var(--apple-blue); margin-right: 10px; font-size: 18px; }
.delete-icon { color: #ff3b30; font-size: 18px; }

.admin-table th { background: #fbfbfd; }