/******************************************************************
Theme Name: Gallery Halkhata
Theme URI: http://www.galleryhalkhata.com
Description: Personal Portfolio & Blog website.
Author: Ibrahim Rana
Author URI: http://www.ibrahimrana.com
Version: 5.0 (Development)
License: GNU General Public License & MIT
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: Sass
******************************************************************/

@import 'tailwindcss';

@font-face {
	font-family: 'gothic';
	src: local('./assets/fonts/gothic'), url('./assets/fonts/gothic.woff') format('woff');
}

.font-gothic {
	font-family: 'gothic' !important;
}

.breadcrumb {
	padding: 8px 15px;
	margin-bottom: 20px;
	list-style: none;
	/* background-color: #f5f5f5; */
	border-radius: 4px;
	display: flex;
}
.breadcrumb > li {
	display: flex;
	align-items: end;
	gap: 0px;
}
.breadcrumb > li + li:before {
	/* content: "/ "; */
  	content: "\\";
	padding: 0 5px;
	color: #ccc;
}
.breadcrumb > .active {
	color: #777777;
}

.p {
	margin-bottom: 1.5em;
}
.entry-content h2 {
    @apply text-red-500 font-bold;
}


/* --- Comment List Container --- */
.commentlist, 
.commentlist .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Base list spacing */
.commentlist > .comment {
  margin-bottom: 25px;
}

/* --- Layout Structure (Flexbox) --- */
.commentlist .media-object {
  display: flex;
  gap: 16px; /* Spacing between avatar and comment content */
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  margin-bottom: 15px;
}

/* Align the sections horizontally */
.commentlist .media-object-section:last-child {
  flex: 1; /* Makes the text container fill the remaining width */
}

/* --- Avatar Styling --- */
.commentlist .avatar {
  border-radius: 50%; /* Smooth circle */
  background-color: #f0f2f5;
  display: block;
  object-fit: cover;
}

/* --- Header & Typography --- */
.commentlist .comment-author {
  font-size: 14px;
  color: #65676b;
  margin-bottom: 8px;
}

/* Author Name Links */
.commentlist .comment-author a.url, 
.commentlist .comment-author {
  font-weight: 700;
  color: #1c1e21;
  text-decoration: none;
}

.commentlist .comment-author a.url:hover {
  color: #0073aa;
  text-decoration: underline;
}

/* Timestamp Style */
.commentlist .comment-author time a {
  font-weight: 400;
  color: #8a8d91;
  font-size: 13px;
  margin-left: 4px;
  text-decoration: none;
}

.commentlist .comment-author time a:hover {
  text-decoration: underline;
}

/* --- Comment Content Body --- */
.commentlist .comment_content {
  margin-bottom: 12px;
}

.commentlist .comment_content p {
  font-size: 15px;
  line-height: 1.6;
  color: #333333;
  margin: 0;
}

/* --- Reply Link Action --- */
.commentlist .comment-reply-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #0073aa;
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid #e1e8ed;
  border-radius: 4px;
  transition: all 0.15s ease-in-out;
  background-color: #f8fafc;
}

.commentlist .comment-reply-link:hover {
  background-color: #0073aa;
  color: #ffffff;
  border-color: #0073aa;
}

/* --- Threaded / Nested Replies Styling --- */
.commentlist .children {
  padding-left: 35px; /* Creates clean spacing for nested threads */
  border-left: 2px solid #e1e8ed; /* Visual timeline connector bar */
  margin-left: 35px; /* Aligns left track cleanly relative to master avatar */
}

/* Custom indicator for the author of the post if needed */
.commentlist .bypostauthor > .media-object {
  border-left: 3px solid #0073aa; /* Accent strip highlighting author comments */
  background-color: #fbfdff;
}

/* Responsive view optimization for small screens */
@media (max-width: 576px) {
  .commentlist .media-object {
    flex-direction: column; /* Stacks avatar above content on narrow screens */
    gap: 10px;
    padding: 15px;
  }
  .commentlist .children {
    padding-left: 15px;
    margin-left: 15px;
  }
}

/* --- Form Container --- */
.comments-area {
  background-color: rgba(0,0,0,.02);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 20px;
}
.comment-form {
  margin: 20px 0;
}

/* --- Logged In Text & Links --- */
.comment-form .logged-in-as {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
}

.comment-form .logged-in-as a {
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
}

.comment-form .logged-in-as a:hover {
  text-decoration: underline;
}

.comment-form .required-field-message {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

.comment-form .required {
  color: #d93025;
  margin-left: 2px;
}

/* --- Textarea / Input Fields --- */
.comment-form .comment-form-comment {
  margin-bottom: 20px;
}
.comment-form p {
  margin-bottom: 18px;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 15px;
}
.comment-form input[type="text"] {
  width: 100%;
  max-width: 400px; /* Limits the width so fields don't stretch too wide on desktop */
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  font-size: 15px;
  color: #333;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: block; /* Ensures the input sits neatly below its label */
  margin-top: 6px;
}

/* Focus state for text inputs */
.comment-form input[type="text"]:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

/* --- Cookie Consent Checkbox Field --- */
.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  margin-top: 15px;
}

.comment-form input[type="checkbox"] {
  margin: 4px 10px 0 0;
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: #0073aa; /* Modern browser checkbox color */
}

.comment-form .comment-form-cookies-consent label {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  cursor: pointer;
}
.comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  resize: vertical; /* Allows user to scale height, but not break width */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Interactive States */
.comment-form textarea:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

ul.products li.product .price {
	color: #111111;
}
/* --- Submit Button --- */
.comment-form #submit, .woocommerce a.button, #respond input#submit {
  background-color: #e7000b;
  color: #ffffff;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid #e7000b;
  border-radius: 8px; /* Sharp edges */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Hover State */
.comment-form #submit:hover, .woocommerce a.button:hover {
  background-color: transparent;
  color: #e7000b;
}

.comment-form .form-submit {
  margin: 0;
}

.comment-form .submit-btn {
  background-color: #0073aa;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.comment-form .submit-btn:hover {
  background-color: #005177;
}

.comment-form .submit-btn:active {
  transform: scale(0.98);
}

/* Preloader */
@keyframes galleryGlow {
    0%, 100% { 
        transform: scale(0.98); 
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3)) brightness(0.9); 
    }
    50% { 
        transform: scale(1.02); 
        filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.6)) brightness(1.1); 
    }
}

@keyframes lineProgress {
    0% { width: 0%; left: 0; }
    50% { width: 100%; left: 0; }
    100% { width: 0%; left: 100%; }
}

/* Custom utility classes linking to our keyframes */
.animate-gallery-glow {
    animation: galleryGlow 4s ease-in-out infinite;
}

.animate-line-progress {
    animation: lineProgress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}



/* WooCommerce */
.woocommerce.columns-2 {
  display: flex;
  flex-direction: column;
  max-width: 960px;
  margin: 35px auto;
}
.woocommerce .products {
    display: flex;
}

/* Quickview Popup Structural Containers */
.wc-qv-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
}
.wc-qv-overlay {
    position: absolute; width: 100%; height: 100%;
    background: rgba(0,0,0,0.65);
}
.wc-qv-content-wrap {
    position: relative; background: #fff; width: 90%; max-width: 850px;
    max-height: 85vh; overflow-y: auto; padding: 30px; border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.25); animation: qvScale 0.25s ease-out;
}
.wc-qv-close {
    position: absolute; top: 15px; right: 15px; background: none;
    border: none; font-size: 32px; cursor: pointer; line-height: 1; color: #333;
}
#wc-quickview-modal .woocommerce-product-gallery {
    opacity: 1 !important;
    width: 100% !important;
}
#wc-quickview-modal .summary.entry-summary {
	width: 100% !important;
}
.wc-qv-loading { text-align: center; padding: 40px 0; font-weight: bold; }

/* Grid Layout Inside Modal */
.wc-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

@media (max-width: 767px) {
    .wc-modal-grid { grid-template-columns: 1fr; }
    .wc-qv-content-wrap { padding: 20px; }
}

@keyframes qvScale {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 3. The Numeric Input Box */
#wc-quickview-modal input[type="number"].qty, .woocommerce .quantity .qty {
    width: 80px;
    height: 48px;
    text-align: center;
    background-color: #f8fafc; /* Tailwind slate-50 */
    border: 1px solid #e2e8f0; /* Tailwind slate-200 */
    border-radius: 8px;
    color: #1e293b; /* Tailwind slate-800 */
    font-weight: 500;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s ease-in-out;
}

/* Removes native spinner increment arrows on Chrome, Safari, and Edge */
.woocommerce .product input[type="number"].qty::-webkit-outer-spin-button,
.woocommerce .product input[type="number"].qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce .product input[type="number"].qty:focus {
    border-color: #94a3b8; /* Focus state border */
    background-color: #ffffff;
}

.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	background-color: #e7000b;
    font-size: 1rem;
    border: 1px solid #e7000b;
    border-radius: 8px;
    transition: background-color 0.15s ease-in-out;
}
/* 4. Add to Cart Button Block */
.woocommerce .product .single_add_to_cart_button.button {
    flex: 1; /* Automatically stretches to fill remaining inline width spacing */
    height: 48px;
    padding: 0 24px;
    background-color: #e7000b; /* Tailwind slate-900 */
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid #e7000b;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.woocommerce .product .single_add_to_cart_button.button:hover, .wc-block-cart__submit-button:hover, .wc-block-components-checkout-place-order-button:hover {
    background-color: transparent; /* Tailwind slate-800 on hover */
	color: #e7000b;
}
.woocommerce-message {
	border-top-color: #111111;
}