/*
Theme Name: Facebook Mobile Dark
Theme URI: https://example.com
Author: Antigravity
Author URI: https://example.com
Description: A Facebook-style mobile dark theme with fast ads.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fb-mobile-dark
*/

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: #18191a;
    color: #e4e6eb;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.fb-header {
    background: #242526;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.fb-logo {
    color: #2374e1;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

.fb-search {
    flex: 1;
    margin: 0 12px;
    background: #3a3b3c;
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
}

.fb-search-text {
    color: #b0b3b8;
    font-size: 15px;
}

/* Containers */
/* Containers */
.feed-container {
    max-width: 680px;
    margin: 56px auto 0;
    background: #18191a;
    min-height: 100vh;
}

.main-container {
    max-width: 680px;
    margin: 56px auto 0;
    padding-bottom: 20px;
}

/* Branding */
.uzair-branding {
    margin-top: 56px;
    /* Below Fixed Header */
    background: #18191a;
    text-align: center;
    padding: 15px 0 5px;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Gradient Animation */
    background-image: linear-gradient(90deg, #ff00cc, #3333ff, #00ffcc, #ff00cc);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: uzairShine 3s linear infinite;
}

@keyframes uzairShine {
    to {
        background-position: 200% center;
    }
}

/* Post Styles */
.post {
    background: #242526;
    margin-bottom: 12px;
    border-top: 8px solid #18191a;
    overflow: hidden;
    position: relative;
}

@media (min-width: 680px) {
    .post {
        border-radius: 8px;
        border-top: none;
        margin-bottom: 16px;
    }
}

.post-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-right: 12px;
    object-fit: cover;
}

.post-info {
    flex: 1;
}

.post-name {
    font-size: 15px;
    font-weight: 600;
    color: #e4e6eb;
    margin-bottom: 2px;
}

.post-time {
    font-size: 13px;
    color: #b0b3b8;
}

.post-menu {
    color: #b0b3b8;
    font-size: 20px;
}

.post-image {
    width: 100%;
    background: #000;
    cursor: pointer;
    position: relative;
    display: block;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
}

.post-actions {
    padding: 8px 16px;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #3a3b3c;
    border-bottom: 1px solid #3a3b3c;
}

.action-btn {
    padding: 8px 12px;
    color: #b0b3b8;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Ads - Enhanced Visibility */
.ad-section {
    background: #242526;
    margin-bottom: 12px;
    border-top: 8px solid #18191a;
    position: relative;
    min-height: 320px;
    /* Increased for better visibility */
    overflow: visible;
    /* Make ads more visible */
    border-left: 3px solid #2374e1;
    /* Blue accent for visibility */
}

@media (min-width: 680px) {
    .ad-section {
        border-radius: 8px;
        border-top: none;
        margin-bottom: 16px;
    }
}

.ad-header {
    padding: 10px 16px;
    font-size: 12px;
    color: #2374e1;
    /* Blue color for better visibility */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #3a3b3c;
    font-weight: 600;
    background: rgba(35, 116, 225, 0.05);
    /* Subtle blue background */
}

.ad-content {
    min-height: 280px;
    background: transparent;
    padding: 16px;
    /* More padding */
    display: block;
    text-align: center;
    position: relative;
    overflow: visible;
    /* Better visibility */
    border: 1px dashed rgba(35, 116, 225, 0.2);
    /* Dashed border */
    margin: 8px;
}

/* Ad Loading Indicator - More Visible */
.ad-content:empty::before {
    content: "📢 Loading Ad...";
    color: #2374e1;
    font-size: 14px;
    font-weight: 600;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Ensure AdSense containers render properly */
.ad-content ins.adsbygoogle {
    display: block !important;
    min-height: 280px !important;
    overflow: visible !important;
    background: transparent !important;
}

/* Make sure ads are visible when loaded */
.ad-content[data-ad-status="filled"],
.ad-content ins.adsbygoogle[data-adsbygoogle-status] {
    border-color: rgba(0, 255, 0, 0.2) !important;
    /* Green when loaded */
}

.ad-placeholder {
    color: #65676b;
    font-size: 13px;
    text-align: center;
}

/* Video Page Specifics */
.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e4e6eb;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 8px;
}

.header-title {
    font-size: 17px;
    font-weight: 600;
}

.video-section {
    background: #000;
    width: 100%;
    position: relative;
}

.video-wrapper {
    width: 100%;
    padding-bottom: 56.25%;
    position: relative;
}

.video-wrapper video,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    background: #242526;
    padding: 12px 16px;
    border-bottom: 1px solid #3a3b3c;
}

.video-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.video-meta {
    font-size: 13px;
    color: #b0b3b8;
}

.section-label {
    padding: 16px;
    font-weight: 600;
    color: #b0b3b8;
    font-size: 15px;
}

/* Helper */
.hidden {
    display: none;
}