/* assets/css/style.css */

:root {
    --primary: #006400; /* Pakistan Green */
    --primary-hover: #004d00;
    --white: #ffffff;
    --light-bg: #f9f9f9;
    --dark-text: #202020;
    --gray-text: #606060;
    --border: #e5e5e5;
    --sidebar-width: 240px;
}

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

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    padding-top: 60px; /* Header height */
    padding-bottom: 60px; /* Mobile Nav height */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === HEADER (Top Bar) === */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: var(--dark-text);
}

.logo span {
    background: var(--primary);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 2px;
}

.search-box {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 20px 0 0 20px;
}

.search-box button {
    padding: 10px 20px;
    border: 1px solid var(--border);
    background: var(--light-bg);
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

.user-actions .btn {
    padding: 8px 15px;
    border-radius: 2px;
    font-weight: 500;
    cursor: pointer;
}

.btn-login {
    border: 1px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-upload {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    margin-right: 10px;
}

/* === SIDEBAR (Desktop) === */
.sidebar {
    position: fixed;
    top: 60px; left: 0;
    width: var(--sidebar-width);
    height: 100%;
    background: var(--white);
    overflow-y: auto;
    padding-top: 10px;
    display: none; /* Mobile me hide */
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--dark-text);
    font-size: 15px;
}

.sidebar-link:hover {
    background-color: #f2f2f2;
}

.sidebar-link.active {
    background-color: #e5f2e5; /* Light Green */
    color: var(--primary);
    font-weight: bold;
}

.sidebar-link i {
    margin-right: 20px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* === MAIN CONTENT === */
.main-content {
    margin-left: 0; /* Mobile default */
    padding: 20px;
}

/* === MOBILE BOTTOM NAV === */
.mobile-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: var(--dark-text);
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary);
}

/* === GRID LAYOUT (Videos) === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* === MEDIA QUERIES === */
@media (min-width: 768px) {
    .sidebar { display: block; }
    .mobile-nav { display: none; }
    .main-content { margin-left: var(--sidebar-width); }
    body { padding-bottom: 0; }
}

@media (max-width: 767px) {
    .search-box { display: none; } /* Mobile me search icon dikhayenge baad me */
    .logo { margin-left: 0; }
}