/*
Theme Name: Million Dollar Brands
Theme URI: https://milliondollarbrands.pk
Author: Ahmer Hassan
Author URI: https://fiverr.com/wpcoder110
Description: Wall of Fame - Pakistan's Digital Landmark
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: million-dollar-brands
*/

:root {
    --primary-blue: #1e40af;
    --primary-blue-light: #3b82f6;
    --secondary-blue: #0ea5e9;
    --orange: #f97316;
    --orange-light: #fb923c;
    --red: #dc2626;
    --red-dark: #b91c1c;
    --gold: #fbbf24;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #333;
    font-size: 15px;
}
/* Professional WooCommerce Checkout Styling */

/* Main sections */
.woocommerce-billing-fields,
.woocommerce-additional-fields,
.woocommerce-checkout-review-order {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

/* Section headings */
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading {
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e8ecf1;
}

/* Form fields */
.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 8px;
  font-size: 14px;
}



.form-row label .required {
  color: #e74c3c;
  font-weight: bold;
}

/* Input fields */
.input-text,
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8ecf1;
  border-radius: 8px;
  font-size: 15px;
  color: #2c3e50;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.input-text:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #3498db;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* Order review table */
.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 25px;
}

.shop_table thead {
  background: #f8f9fa;
}

.shop_table th {
  padding: 15px 20px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e8ecf1;
}

.shop_table td {
  padding: 20px;
  border-bottom: 1px solid #f0f2f5;
  color: #5a6c7d;
}

.shop_table .product-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 16px;
}

.shop_table .product-name dl {
  margin: 10px 0 0 0;
  font-size: 13px;
  color: #7f8c9a;
  font-weight: normal;
}

.shop_table .product-name dt {
  font-weight: 600;
  color: #5a6c7d;
  display: inline;
}

.shop_table .product-name dd {
  display: inline;
  margin: 0;
}

/* Subtotal and Total rows */
.cart-subtotal td,
.order-total td {
  font-weight: 600;
  font-size: 16px;
  color: #2c3e50;
  padding: 20px;
}

.order-total td {
  font-size: 20px;
  color: #27ae60;
  background: #f8fafb;
}

/* Payment section */
.woocommerce-checkout-payment {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  margin-top: 25px;
  border: 2px solid #e8ecf1;
}

.payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.payment_methods li {
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 2px solid #e8ecf1;
  transition: all 0.3s ease;
}

.payment_methods li:hover {
  border-color: #3498db;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.payment_methods label {
  font-weight: 600;
  color: #2c3e50;
  cursor: pointer;
  display: block;
}

.payment_box {
  background: #f8fafb;
  padding: 15px;
  margin-top: 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #5a6c7d;
  line-height: 1.6;
}

/* Privacy policy and terms */
.woocommerce-privacy-policy-text,
.woocommerce-terms-and-conditions-wrapper {
  font-size: 14px;
  color: #5a6c7d;
  line-height: 1.8;
  margin: 20px 0;
}

.woocommerce-privacy-policy-text a,
.woocommerce-terms-and-conditions-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.woocommerce-privacy-policy-text a:hover,
.woocommerce-terms-and-conditions-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Terms checkbox */
.woocommerce-form__input-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: #3498db;
}

.woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #5a6c7d;
}

/* Place order button */
#place_order {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#place_order:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  transform: translateY(-2px);
}

#place_order:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
  .woocommerce-billing-fields,
  .woocommerce-additional-fields,
  .woocommerce-checkout-review-order {
    padding: 20px;
  }
  
  .shop_table th,
  .shop_table td {
    padding: 12px;
    font-size: 14px;
  }
  
  #place_order {
    padding: 16px 24px;
    font-size: 15px;
  }
}

/* Additional polish */
.woocommerce-NoticeGroup {
  margin-bottom: 25px;
}

.woocommerce-error,
.woocommerce-message {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.woocommerce-error {
  background: #fee;
  border-left: 4px solid #e74c3c;
  color: #c0392b;
}

.woocommerce-message {
  background: #efd;
  border-left: 4px solid #27ae60;
  color: #229954;
}
/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 50px 20px 20px;
}

.footer-widgets-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget {
    color: rgba(255,255,255,0.9);
}

.footer-widget .widget-title {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-widget ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Blog Styles */
.blog-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.blog-content h2,
.blog-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.blog-content h2 a,
.blog-content h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.blog-content h2 a:hover,
.blog-content h3 a:hover {
    color: var(--theme-gradient-end);
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--theme-gradient-start);
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    color: var(--orange);
}

/* Payment Process Notice */
.payment-process-notice {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f9ff 100%);
    border: 2px solid var(--theme-gradient-start);
    border-radius: 15px;
    padding: 30px;
    margin: 40px auto;
    max-width: 800px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.notice-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.notice-content h3 {
    color: var(--theme-gradient-start);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.notice-content p {
    margin: 10px 0;
    color: #2c3e50;
    line-height: 1.6;
}

.bonus-notice {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px !important;
    font-weight: 600;
}

/* Single Post Styles */
.single-post-container {
    padding: 40px 20px;
}

.post-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 1rem;
    opacity: 0.9;
    color: white;
}

.post-meta span {
    margin: 0 10px;
}

.post-featured-image {
    max-width: 1200px;
    margin: -50px auto 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content h2,
.post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--theme-gradient-start);
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background: var(--theme-gradient-start);
    color: white;
}

.pagination .current {
    background: var(--theme-gradient-start);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-process-notice {
        flex-direction: column;
        text-align: center;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Language Switcher Styles */
body[lang="ur"] {
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastalikh Urdu', 'Urdu Typesetting', 'Jameel Noori', serif;
    direction: rtl;
    text-align: right;
}

body[lang="ur"] .header-nav {
    flex-direction: row-reverse;
}

.lang-switcher {
    position: relative;
}

.lang-dropdown {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.lang-dropdown:hover {
    background: rgba(255,255,255,0.3);
}

.lang-dropdown option {
    background: #2c3e50;
    color: white;
}

/* Hide inactive language elements */
body[lang="en"] [data-lang="ur"] {
    display: none;
}

body[lang="ur"] [data-lang="en"] {
    display: none;
}

/* Logo styling for custom logo */
.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

/* Ensure header nav stays properly aligned */
.header-nav {
    display: flex;
    gap: 25px;
    align-items: center;
    font-size: 0.9rem;
}

.header-nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.header-nav a:hover {
    opacity: 0.8;
}

.header-cta {
    background: var(--orange);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
}

.header-cta:hover {
    background: var(--orange-light);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        font-size: 0.85rem;
    }
    
    body[lang="ur"] .header-nav {
        flex-direction: row-reverse;
        flex-wrap: wrap;
    }
}