/* Premium Life Insurance Landing Page Stylesheet */

:root {
    /* Color Palette */
    --primary-color: #0f2b5c;      /* Premium Dark Blue */
    --primary-hover: #163d7e;      /* Premium Lighter Dark Blue for hover */
    --primary-active: #091c3d;     /* Deep Navy Blue for active press */
    --bg-color: #f5f6fb;           /* Clean Page Background */
    --text-color: #ffffff;         /* Text color for buttons */
    --font-family: 'Poppins', sans-serif;
    
    /* Layout Constants */
    --border-radius: 14px;
    --spacing-unit: 16px;
    
    /* Box Shadows */
    --shadow-subtle: 0 4px 6px -1px rgba(15, 43, 92, 0.08), 0 2px 4px -1px rgba(15, 43, 92, 0.03);
    --shadow-premium: 0 10px 20px -5px rgba(15, 43, 92, 0.15), 0 4px 6px -2px rgba(15, 43, 92, 0.05);
}

/* Reset and Base Styles */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-family);
    color: #333333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 8px 0; /* Vertical spacing only, absolutely zero on left/right */
    line-height: 1.5;
}

/* Centered Container */
.container {
    width: 100%;
    max-width: 100%; /* Edge to edge on all screens */
    margin: 0;
}

/* Smooth Page Load Animation */
.page-fade-in {
    opacity: 0;
    transform: translateY(12px);
    animation: premiumFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes premiumFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Layout */
main {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Hero Section Overlay Styling */
.hero-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-overlay {
    position: relative; /* Behaves as normal content flow */
    z-index: 100;
    width: 100%;
    background-color: #151515;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
}

/* Cloned Theme Styling from desidekho.best */
.clone-header {
    background: #111111;
    border-bottom: 2px solid #FF3565;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.clone-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.clone-logo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.clone-logo i {
    color: #FF3565;
}

.clone-tagline {
    font-size: 9.5px;
    color: #888888;
    margin: 2px 0 0 0;
    letter-spacing: 0.1px;
}

.clone-search {
    display: flex;
    width: 100%;
    height: 36px;
}

.clone-search input {
    flex: 1;
    background: #222222;
    border: 1px solid #333333;
    border-radius: 4px 0 0 4px;
    padding: 0 12px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
}

.clone-search-btn {
    background: #FF3565;
    border: none;
    color: #ffffff;
    padding: 0 16px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}

/* Navigation bar */
.clone-nav {
    background: #222222;
    border-bottom: 1px solid #333333;
}

.clone-nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.clone-nav li {
    flex: 1;
    text-align: center;
}

.clone-nav li a {
    display: block;
    padding: 10px 0;
    color: #cccccc;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.clone-nav li.active a {
    background: #FF3565;
    color: #ffffff;
}

/* Grid & Content area */
.clone-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clone-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #222222;
    padding-bottom: 6px;
}

.clone-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    border-left: 3px solid #FF3565;
    padding-left: 8px;
    margin: 0;
}

.clone-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888888;
}

/* Video Grid and Card styles */
.clone-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (min-width: 769px) {
    .clone-video-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .clone-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .clone-search {
        width: 300px;
    }
}

.clone-video-card {
    background: #1e1e1e;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.clone-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000000;
}

.clone-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.clone-video-overlay-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
}

.clone-video-overlay-play::before {
    content: "\f01d"; /* FontAwesome Play Circle Icon */
    font-family: "FontAwesome";
    font-size: 32px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, color 0.2s ease;
}

.clone-badge-hd {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #FF3565;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
}

.clone-views {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.clone-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.clone-rating-bar {
    position: relative;
    background: #333333;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    font-size: 9px;
    color: #cccccc;
}

.clone-rating-meter {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #FF3565;
    opacity: 0.15;
}

.clone-rating-bar i {
    font-size: 8px;
    color: #FF3565;
}

.clone-video-title {
    padding: 6px;
    font-size: 11.5px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 30px;
    text-align: left;
}

/* Pagination */
.clone-pagination {
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.clone-pagination ul {
    list-style: none;
    display: flex;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.clone-pagination li span {
    display: block;
    background: #222222;
    border: 1px solid #333333;
    color: #cccccc;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 600;
}

.clone-pagination li.active span {
    background: #FF3565;
    border-color: #FF3565;
    color: #ffffff;
}

/* Underlay Adsterra Feed Layout */
.adsterra-feed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Sits underneath the visual overlay */
}

/* Feed Buttons Wrapper spanning full content height */
.feed-buttons {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    gap: 0;
}

/* Invisible tap target buttons that stack directly behind the grid rows */
.feed-btn {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden; /* Necessary for ripple effect */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 24px;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    opacity: 0; /* Fully transparent by default, becomes visible on click feedback */
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s ease, background-color 0.25s ease;
}

/* Active Pressed state elevating button over the page clone on tap */
.feed-btn.active-pressed {
    position: relative;
    z-index: 101 !important; /* Bring above .hero-overlay */
    opacity: 1 !important; /* Show premium button text/bg during tap */
    background-color: var(--primary-active) !important;
    transform: scale(0.995);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-text {
    flex: 1;
    margin-right: 12px;
    text-align: left;
    user-select: none;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.btn-icon svg {
    display: block;
}

/* Click Ripple Animation Element */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-effect 0.5s ease-out;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Tablet Responsive Adjustments */
@media (max-width: 768px) {
    /* Cloned theme handles flex/grid wrapping dynamically */
}

/* Mobile Responsive Adjustments */
@media (max-width: 480px) {
    body {
        padding: 4px 0;
    }
}
