/*
Theme Name: Instagram Style Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A simple WordPress theme with an Instagram-like grid layout, dark background, and video support.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: instagram-style-theme
*/

/* Global Styles */
body {
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Header Styles */
header {
    position: relative;
    height: 300px; /* Adjust height as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

header video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.logo {
    position: relative;
    z-index: 2;
}

.logo img {
    max-width: 100px;
}

.title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 2em;
    margin-top: 20px;
}

/* Search Field */
.header-search {
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
    padding: 0 20px;
}

.header-search input[type="text"] {
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
}

.header-search input[type="submit"] {
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.header-search input[type="submit"]:hover {
    background-color: #005177;
}

/* Main Content Styles */
main {
    background-color: #000;
    padding: 20px;
    max-width: 800px; /* Adjust as needed */
    margin: 0 auto; /* Center the content */
}

.post-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    background-color: #333;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Affiliate Product Styles */
.post-item.affiliate-product {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-item.affiliate-product .product-image {
    flex: 0 0 150px;
    margin-right: 20px;
}

.post-item.affiliate-product .product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.post-item.affiliate-product .product-details {
    flex: 1;
}

.post-item.affiliate-product h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #000;
}

.post-item.affiliate-product .product-description {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
}

.post-item.affiliate-product .price {
    font-size: 1.2rem;
    color: #0073aa;
    font-weight: bold;
    margin-bottom: 10px;
}

.post-item.affiliate-product .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.post-item.affiliate-product .button:hover {
    background-color: #005177;
}

/* Single Affiliate Product Styles */
.affiliate-product-single {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.affiliate-product-single .product-image {
    flex: 0 0 200px;
    margin-right: 20px;
}

.affiliate-product-single .product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.affiliate-product-s