/*
Theme Name: PakSindh Pure WAP
Author: PakSindh
Version: 1.0
*/

* { box-sizing: border-box; }

body {
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    background-color: #f2f2f2;
    color: #000;
    margin: 0;
    padding: 0;
}

.wrapper {
    max-width: 720px;
    margin: 0 auto;
    background-color: #fff;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
}

/* ===== TOP INFO BAR ===== */
.top-bar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    gap: 10px;
}

.top-date {
    color: #009E8C;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

.top-breaking {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.breaking-badge {
    background: #009E8C;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== BREAKING NEWS TICKER ===== */
.ticker-wrap {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker {
    display: inline-block;
    animation: ticker-scroll 20s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 25px;
    position: relative;
}

.ticker-item::after {
    content: '•';
    position: absolute;
    right: 0;
    color: #009E8C;
}

.ticker-item a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 11px;
    transition: color 0.2s;
}

.ticker-item a:hover {
    color: #009E8C;
    text-decoration: underline;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-wrap:hover .ticker {
    animation-play-state: paused;
}

/* ===== MAIN HEADER (NEVER BREAKS TO NEXT LINE) ===== */
.main-header {
    background: #fff;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
    flex-wrap: nowrap !important;
    gap: 10px;
}

.site-logo { 
    flex-shrink: 0;
}

.site-logo a { 
    color: #1a1a2e; 
    font-weight: 900; 
    text-decoration: none; 
    font-size: 26px; 
    letter-spacing: -1px;
    font-family: 'Arial Black', Tahoma, sans-serif;
    white-space: nowrap;
}

/* ===== SEARCH BOX (Screenshot Style) ===== */
.header-search {
    flex-shrink: 1;
    min-width: 0;
    max-width: 280px;
    width: 100%;
}

.header-search form {
    display: flex;
    align-items: center;
    width: 100%;
    background: #fff;
    border: 2px solid #009E8C;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.header-search form:focus-within {
    border-color: #007a6b;
    box-shadow: 0 0 8px rgba(0, 158, 140, 0.3);
}

.header-search input[type="text"] {
    flex: 1;
    padding: 9px 12px;
    border: none;
    font-size: 13px;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    background: #fff;
    color: #333;
    outline: none;
    min-width: 0;
}

.header-search input[type="text"]::placeholder {
    color: #888;
    font-size: 13px;
}

.header-search button {
    padding: 9px 14px;
    background: #fff;
    color: #333;
    border: none;
    border-left: 1px solid #e0e0e0;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search button:hover {
    background: #009E8C;
    color: #fff;
}

/* ===== TEAL NAV BAR ===== */
.nav-bar {
    background: #009E8C;
    padding: 0;
    display: flex;
    align-items: center;
    overflow-x: auto;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    padding: 12px 22px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.nav-item:hover {
    background: rgba(255,255,255,0.15);
}

.nav-item.active {
    background: rgba(255,255,255,0.25);
    position: relative;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background: #fff;
    border-radius: 2px 2px 0 0;
}

/* ===== WELCOME BAR ===== */
.welcome-bar {
    background: linear-gradient(to bottom, #4facfe 0%, #00a8ff 100%);
    color: #fff;
    text-align: center;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* ===== ZIGZAG BORDER ===== */
.zigzag-border {
    height: 8px;
    background: 
        linear-gradient(135deg, #00a8ff 25%, transparent 25%) -8px 0,
        linear-gradient(225deg, #00a8ff 25%, transparent 25%) -8px 0,
        linear-gradient(315deg, #e8e8e8 25%, transparent 25%),
        linear-gradient(45deg, #e8e8e8 25%, transparent 25%);
    background-size: 16px 16px;
    background-color: #e8e8e8;
}

/* ===== AUTH BAR ===== */
.auth-bar {
    background: linear-gradient(to bottom, #f5f5f5, #e8e8e8);
    padding: 6px 12px;
    text-align: right;
    border-bottom: 1px solid #ccc;
}

.auth-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-links a {
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.btn-login {
    color: #666;
    background: transparent;
}

.btn-login:hover {
    color: #333;
}

.user-icon {
    margin-right: 3px;
}

.btn-register {
    color: #fff;
    background: #ff0000;
    border: 1px solid #cc0000;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-register:hover {
    background: #cc0000;
}

/* ===== CONTENT ===== */
.main-content { 
    padding: 12px; 
}

.post-item {
    border-bottom: 1px dashed #ccc;
    padding: 10px 0;
    transition: background 0.2s ease;
}
.post-item:hover {
    background: rgba(0,158,140,0.03);
}
.post-item a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}
.post-item a:hover {
    color: #009E8C;
}
.post-item a:visited { color: #800080; }
.post-meta { font-size: 10px; color: #666; margin-top: 3px; }

.wap-thumb {
    width: 50px;
    height: 50px;
    float: left;
    margin-right: 8px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.footer {
    background: linear-gradient(to bottom, #f5f5f5, #f0f0f0);
    border-top: 1px solid #ccc;
    text-align: center;
    padding: 12px;
    font-size: 11px;
    margin-top: 10px;
    color: #666;
}

.clear { clear: both; }

/* ===== MOBILE ===== */
@media (max-width: 480px) {
    .main-header {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .site-logo a {
        font-size: 20px;
    }
    
    .header-search {
        max-width: 180px;
    }
    
    .header-search input[type="text"] {
        padding: 7px 10px;
        font-size: 12px;
    }
    
    .header-search input[type="text"]::placeholder {
        font-size: 12px;
    }
    
    .header-search button {
        padding: 7px 10px;
        font-size: 13px;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    
    .ticker-wrap {
        width: 100%;
    }
    
    .nav-item {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .auth-bar {
        text-align: center;
    }
}