/* =====================================
   1. General & Layout Styles
   ===================================== */
body {
    background-color: #f8fafc;
    font-family: Arial, sans-serif;
    margin: 0;
    padding-bottom: 80px;
}

.wallet-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Wallet Cards & Store Cards Layout */
.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
}

.card h3 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #64748b;
}

.card .value {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
}

/* Withdraw Button */
.btn-withdraw {
    background-color: #16a34a;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

.btn-withdraw:hover {
    background-color: #15803d;
}

/* Rewards Store Styling Inside Wallet */
.store-section {
    margin-top: 10px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #0f172a;
    margin-bottom: 12px;
    text-align: center;
}

.product-img-box {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.btn-claim {
    background-color: #16a34a;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

.btn-claim:hover {
    background-color: #15803d;
}

/* =====================================
   2. Video Section & Grid Layout
   ===================================== */
#videoList, #videoContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.thumbnail-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
}

.thumbnail-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .thumbnail-box img {
    transform: scale(1.05);
}

.video-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
    justify-content: space-between;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.btn-watch {
    display: block;
    text-align: center;
    background-color: #dc2626;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-watch:hover {
    background-color: #b91c1c;
}

.btn-watch:active {
    transform: scale(0.98);
}

/* =====================================
   3. Sticky Bottom Navigation Bar
   ===================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    border-top: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    width: 25%; /* 4 ఐటమ్స్ ఉంటే 25%, 5 ఐటమ్స్ ఉంటే 20% పెట్టుకోవచ్చు */
    text-align: center;
    transition: color 0.2s ease;
}

.nav-item .icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.nav-item.active, .nav-item:hover {
    color: #2563eb;
    font-weight: bold;
}