/*
Theme Name: Rehub Child - TopNegozi Style
Theme URI: https://rehub.wpsoul.com/
Description: Rehub child theme with TopNegozi.it design and layout.
Author: ram raiga
Author URI: https://compraguadagna.com
Template: rehub-theme
Version: 2.0.0
*/

/* ==========================================================================
   CSS Variables (TopNegozi Palette)
   ========================================================================== */
:root {
  --tn-primary: #E68A00; /* TopNegozi Orange */
  --tn-dark: #212529; /* Dark Header/Top Bar */
  --tn-bg-light: #F8F9FA; /* Footer and Section Background */
  --tn-white: #FFFFFF;
  --tn-text-main: #333333;
  --tn-text-muted: #666666;
  --tn-border: #dee2e6;
  --tn-shadow: 0 2px 15px rgba(0,0,0,0.05);
  --tn-radius: 8px;
}

body {
  font-family: 'Roboto', 'Inter', -apple-system, sans-serif;
  background-color: var(--tn-white);
  color: var(--tn-text-main);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.tn-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   Header Styling
   ========================================================================== */
.tn-site-header {
  background-color: var(--tn-dark);
  color: #fff;
}

/* Top Bar / Main Header Flex */
.tn-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  flex-wrap: wrap;
}

.tn-branding img {
  max-width: 180px;
  height: auto;
}

/* Search Bar (TopNegozi Style) */
.tn-header-search {
  flex: 1;
  max-width: 500px;
  margin: 0 30px;
  position: relative;
}

.tn-search-form {
  display: flex;
  background: #444;
  border-radius: 50px;
  overflow: hidden;
  padding: 2px;
}

.tn-search-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 20px;
  color: #fff;
  outline: none;
}

.tn-search-form input::placeholder {
  color: #bbb;
}

.tn-search-form button {
  background: transparent;
  border: none;
  color: #fff;
  padding: 0 20px;
  cursor: pointer;
  font-size: 18px;
}

/* User Actions */
.tn-user-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tn-login-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.tn-register-btn {
  background-color: var(--tn-primary);
  color: #fff;
  padding: 8px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: opacity 0.2s;
}

.tn-bonus-text {
  display: block;
  font-size: 10px;
  color: var(--tn-primary);
  text-align: center;
  margin-top: 4px;
}

/* Navigation */
.tn-navigation {
  background-color: var(--tn-dark);
  border-top: 1px solid #333;
}

.tn-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.tn-navigation ul li a {
  display: block;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

.tn-navigation ul li a:hover {
  color: var(--tn-primary);
}

/* ==========================================================================
   Homepage Sections
   ========================================================================== */
.tn-section {
  padding: 40px 0;
}

.tn-section-gray {
  background-color: var(--tn-bg-light);
}

.tn-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.tn-section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--tn-text-main);
  margin: 0;
}

.tn-view-all {
  color: var(--tn-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

/* Coupon Card Styling (TopNegozi Style) */
.tn-coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.tn-coupon-card {
  background: #fff;
  border-radius: var(--tn-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  box-shadow: var(--tn-shadow);
  border: 1px solid transparent;
  transition: all 0.3s;
}

.tn-coupon-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  border-color: var(--tn-border);
}

.tn-store-logo-wrapper {
  flex: 0 0 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-right: 20px;
  background: #fff;
}

.tn-store-logo-wrapper img {
  max-width: 60px;
  max-height: 40px;
  object-fit: contain;
}

.tn-coupon-content {
  flex: 1;
}

.tn-coupon-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--tn-primary);
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}

.tn-coupon-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
  color: var(--tn-text-main);
}

.tn-coupon-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tn-btn-primary {
  background-color: var(--tn-primary);
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

.tn-code-preview {
  border: 1px dashed var(--tn-border);
  padding: 8px 12px;
  border-radius: 6px;
  background: #fdfdfd;
  font-family: monospace;
  font-weight: 700;
  color: #555;
  font-size: 13px;
}

/* Store Logos Section */
.tn-stores-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tn-store-tag {
  background: #fff;
  border: 1px solid var(--tn-border);
  padding: 8px 20px;
  border-radius: 50px;
  color: var(--tn-text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.tn-store-tag:hover {
  background: var(--tn-primary);
  color: #fff;
  border-color: var(--tn-primary);
}

/* ==========================================================================
   Footer Styling
   ========================================================================== */
.tn-footer {
  background-color: var(--tn-bg-light);
  padding: 60px 0 20px;
  border-top: 1px solid #eee;
  color: var(--tn-text-muted);
}

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

.tn-footer-col h3 {
  color: var(--tn-text-main);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.tn-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tn-footer-col ul li {
  margin-bottom: 10px;
}

.tn-footer-col ul li a {
  color: var(--tn-text-muted);
  text-decoration: none;
  font-size: 14px;
}

.tn-footer-col ul li a:hover {
  color: var(--tn-primary);
}

.tn-footer-bottom {
  border-top: 1px solid #eee;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* ==========================================================================
   Mobile Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  .tn-header-search {
    order: 3;
    max-width: 100%;
    margin: 15px 0 0;
  }
  .tn-user-actions {
    gap: 10px;
  }
  .tn-coupon-grid {
    grid-template-columns: 1fr;
  }
  .tn-site-header {
    padding-bottom: 15px;
  }
}
