/*
Theme Name: QuickBio Links
Theme URI: https://dizetech.in/shop
Author: DIZE TECH IT SOLUTIONS
Author URI: https://DIZETECH.com/
Description: A WordPress theme based on the QuickBio Links design.
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quickbio-links
*/

:root {
    --primary-color: #7c3aed; /* Purple */
    --secondary-color: #ffffff; /* White */
    --text-color: #000000; /* Black */
    --background-color: #f4f4f4; /* Light Gray */
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fafafa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Styles */
.header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}



.mobile-only {
    display: none;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-btn {
    width: 2.5rem;
    height: 2.5rem;
    
    border-radius: 9999px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscribe-btn {
    background-color: #FF4361;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Categories Styles */
.categories-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.categories {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-grow: 1;
    transition: max-height 0.3s ease-in-out;
    max-height: 40px;
}

.categories::-webkit-scrollbar {
    display: none;
}

.categories-wrapper.show-all .categories {
    flex-wrap: wrap;
    max-height: 1000px;
}

.category-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    background-color: white;
    color: #4b5563;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    border-right: 2px solid rgba(0, 0, 0, 0.07);
	border-bottom: 2px solid rgba(0, 0, 0, 0.07);
	box-shadow: 0 0 10px rgba(232, 234, 237, 0.5);
}

.category-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.category-btn.home {
    background-color: #ffffff;
    color: white;

 
    text-decoration: none;
    border: none;

    display: inline-block;
    transition: background-color 1.5s ease;
    animation: redPulse 1.5s infinite alternate;
  }
  
  @keyframes redPulse {
    0% {
      background-color: #7c3aed;
    }
    100% {
      background-color: #2793ff;
    }
  }
  




.more-categories-btn {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-categories-btn.active {
    background-color: var(--primary-color);
    color: white;
}


/* Grid View Styles */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.link-card {
    background: white;
    /* border-radius: 0.75rem; */
    overflow: hidden;
    
    transition: transform 0.2s;
    border-right: 2px solid rgba(0, 0, 0, 0.07);
	border-bottom: 2px solid rgba(0, 0, 0, 0.07);
	box-shadow: 0 0 10px rgba(232, 234, 237, 0.5);
}

.link-card:hover {
    transform: translateY(-4px);
}

.link-card-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
}

.link-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.buy-now-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.link-card:hover .buy-now-overlay {
    opacity: 1;
}

.link-card-content {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.link-card-title {
    font-size: 1rem;
    color: #1f2937;
    flex: 1;
}

/* List View Styles */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-list .link-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    transform: none;
}

.link-list .link-card-image-container {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    aspect-ratio: 1;
}

.link-list .link-card-content {
    padding: 0;
    flex: 1;
}

.link-list-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Action Buttons */
.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
}

.buy-btn i {
    color: var(--primary-color);
}

.view-btn i {
    color: #0EA5E9;
}

.buy-btn:hover, .view-btn:hover {
    background-color: #f3f4f6;
}

/* Pagination */
.pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination .current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .prev,
.pagination .next {
    padding: 0 1rem;
}

/* Single Post Layout */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.single-post-main {
    background: white;
    padding: 2rem;
    /* border-radius: 0.75rem; */
    border-right: 2px solid rgba(0, 0, 0, 0.07);
	border-bottom: 2px solid rgba(0, 0, 0, 0.07);
	box-shadow: 0 0 10px rgba(232, 234, 237, 0.5);
}

.single-post-main p {
    padding-top: 15px;
}

.post-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.post-featured-image {
    margin-bottom: 1.5rem;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.buy-now-button {
    text-align: center;
    margin: 1.5rem 0;
}



/* Sidebar Styles */
.single-post-sidebar {
    background: white;
    padding: 1.5rem;
    
    border-right: 2px solid rgba(0, 0, 0, 0.07);
	border-bottom: 2px solid rgba(0, 0, 0, 0.07);
	box-shadow: 0 0 10px rgba(232, 234, 237, 0.5);
}

.sidebar-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1f2937;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-list a:hover {
    color: #7c3aed;
}

.sidebar-ads {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.widget {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1f2937;
}
/* Sidebar Styles */




.sidebar-post {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-post:last-child {
    border-bottom: none;
}

.sidebar-post-image {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-content {
    flex: 1;
}

.sidebar-post-title {
    font-size: 1rem;
    font-weight: 500;
}

.sidebar-post-title a {
    color: inherit;
    text-decoration: none;
}

.sidebar-post-menu {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
}

/* Responsive Design sidebar */
@media (max-width : 900px){
    .single-post-layout {
    grid-template-columns: 1fr;
}
}
/* Responsive Design */
@media (max-width: 768px) {
    .header-main {
        width: 100%;
    }
    .container {
        padding: 0.2rem;
    }
    .single-post-main {
        padding: 1rem;
    }

    .desktop-only {
        display: none;
    }
    

    .mobile-only {
        display: block;
        max-width: none !important;
        margin: 0px !important;
        
    }

    .subscribe-btn span {
        display: none;
    }

    .subscribe-btn {
        padding: 5px;
    }

    .subscribe-btn i {
        margin: 0;
    }

    .link-list .link-card {
        padding: 0.75rem;
    }

    .link-list .link-card-image-container {
        width: 50px;
        height: 50px;
    }

    .link-list .link-card-title {
        font-size: 0.875rem;
    }

    .action-btn {
        padding: 0.4rem;
    }

    .single-post-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .more-categories-btn {
        display: flex;
    }
}

.logo a {
    text-decoration: none; /* Remove underline */
    color: var(--primary-color); /* Set font color */
}

.logo a:hover {
    color: var(--primary-color); /* Ensure color remains the same on hover */
}

.link-card-content a {
    text-decoration: none; /* Removes underline */
    color: black; /* Ensures text color is always black */
}

.link-card-content svg {
    color: #3b82f6; /* Sets SVG color to #7c3aed */
    fill: #3b82f6; /* Ensures the fill color is #7c3aed */
}


/* Footer Styles */
.footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;
}

.footer p {
    color: #4b5563;
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
}

.affiliate-box {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    max-width: 700px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 16px;
    background-color: #fff;
    margin: 16px auto;
}

.share-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.share-button .material-icons {
    font-size: 18px;
}

.product-image {
    flex: 1 1 40%;
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.product-info {
    flex: 1 1 55%;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
}

.product-price {
    font-size: 1.2rem;
    color: #2d89ef;
    margin-bottom: 12px;
}

.buy-button {
    text-align: center;
}

.buy-button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.buy-button a:hover {
    background-color: #0056b3;
}

.buy-button .material-icons {
    margin-right: 8px;
    font-size: 18px;
}

/* Media Query for Mobile and Tablet Views */
@media (max-width: 768px) {
    .affiliate-box {
        flex-direction: column;
    }

    .product-image {
        flex: 1 1 100%;
        max-width: 100%;
        padding-bottom: 16px;
    }

    .product-info {
        padding-left: 0;
        flex: 1 1 100%;
    }
}

#toast {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background-color: #333;
color: #fff;
padding: 10px;
border-radius: 5px;
font-size: 16px;
z-index: 9999;
opacity: 0;
transition: opacity 0.5s ease;
}



/* Widget-specific styles */
.widget_categories ul,
.widget_pages ul,
.widget_archive ul,
.widget_meta ul,
.widget_recent_entries ul,
.widget_nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_categories li,
.widget_pages li,
.widget_archive li,
.widget_meta li,
.widget_recent_entries li,
.widget_nav_menu li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.widget_categories li:last-child,
.widget_pages li:last-child,
.widget_archive li:last-child,
.widget_meta li:last-child,
.widget_recent_entries li:last-child,
.widget_nav_menu li:last-child {
    border-bottom: none;
}

.widget_categories a,
.widget_pages a,
.widget_archive a,
.widget_meta a,
.widget_recent_entries a,
.widget_nav_menu a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_categories a:hover,
.widget_pages a:hover,
.widget_archive a:hover,
.widget_meta a:hover,
.widget_recent_entries a:hover,
.widget_nav_menu a:hover {
    color: #7c3aed;
}

/* Category count style */
.widget_categories li a {
    display: flex;
    justify-content: space-between;
}

.widget_categories .count {
    background-color: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #6b7280;
}

