/*
Theme Name: Taste Link
Theme URI: https://tastelinkllc.com
Author: OpenClaw
Description: Taste Link LLC recipe marketplace theme. Multi-language (Spanish/Portuguese), dish catalog with categories, payment, SEO-ready.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: tastelink
*/

:root{
  --red:#c62828; --red-dark:#8e0000; --gold:#f5a623;
  --dark:#1a1a1a; --gray:#666; --light:#f7f4ef; --white:#fff;
  --radius:14px; --shadow:0 6px 20px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
body{margin:0;font-family:'Poppins',system-ui,-apple-system,sans-serif;color:var(--dark);background:var(--white);line-height:1.6}
img{max-width:100%;height:auto}
a{color:var(--red);text-decoration:none}
.tl-container{max-width:1160px;margin:0 auto;padding:0 20px}
.skip-link{position:absolute;left:-999px}
.skip-link:focus{left:8px;top:8px;background:var(--red);color:#fff;padding:8px 14px;z-index:99}

/* Header */
.tl-header{background:var(--white);border-bottom:1px solid #eee;position:sticky;top:0;z-index:50}
.tl-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px}
.tl-brand-name{font-size:20px;font-weight:700;color:var(--red)}
.tl-nav ul{list-style:none;display:flex;gap:22px;margin:0;padding:0}
.tl-nav a{color:var(--dark);font-weight:500}
.tl-nav a:hover{color:var(--red)}
.tl-header-actions{display:flex;align-items:center;gap:14px}
.tl-lang-switch{display:flex;gap:6px;font-weight:600;align-items:center}
.tl-globe{font-size:16px;margin-right:2px}
.tl-lang-switch a{color:var(--gray)}
.tl-lang-switch a.active{color:var(--red);text-decoration:underline}
.tl-burger{display:none;background:none;border:0;font-size:26px;cursor:pointer}

/* Buttons */
.tl-btn{display:inline-block;padding:12px 24px;border-radius:50px;font-weight:600;border:2px solid transparent;cursor:pointer;transition:.2s;text-align:center}
.tl-btn-primary{background:var(--red);color:#fff}
.tl-btn-primary:hover{background:var(--red-dark)}
.tl-btn-outline{border-color:var(--red);color:var(--red);background:transparent}
.tl-btn-outline:hover{background:var(--red);color:#fff}
.tl-btn-pay{background:var(--gold);color:var(--dark);padding:8px 18px;font-size:14px}
.tl-btn-pay:hover{background:#e0961f}
.tl-btn-lg{padding:14px 32px;font-size:17px}

/* Hero */
.tl-hero{background:linear-gradient(135deg,var(--red) 0%,var(--red-dark) 100%);color:#fff;padding:90px 0;text-align:center}
.tl-hero h1{font-size:42px;line-height:1.2;margin:0 0 16px}
.tl-hero p{font-size:18px;opacity:.92;max-width:640px;margin:0 auto 28px}
.tl-hero-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.tl-hero .tl-btn-outline{border-color:#fff;color:#fff}
.tl-hero .tl-btn-outline:hover{background:#fff;color:var(--red)}

/* Sections */
.tl-section{padding:60px 0}
.tl-section-alt{background:var(--light)}
.tl-section-title{font-size:30px;text-align:center;margin:0 0 34px}

/* Cards */
.tl-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:22px}
.tl-card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:26px;text-align:center;color:var(--dark);transition:.2s;display:block}
.tl-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(0,0,0,.14)}
.tl-card-icon{font-size:44px;margin-bottom:10px}
.tl-card h3{margin:8px 0 4px;font-size:18px}
.tl-card p{margin:0;color:var(--gray);font-size:14px}
.tl-dish-card{padding:0;overflow:hidden}
.tl-dish-card h3{padding:14px 16px 6px}
.tl-dish-card .tl-dish-excerpt{padding:0 16px 16px;color:var(--gray);font-size:14px}
.tl-dish-thumb{width:100%;height:180px;object-fit:cover}
.tl-dish-thumb-placeholder{background:var(--light);display:flex;align-items:center;justify-content:center;font-size:48px}
.tl-dish-thumb-placeholder-lg{height:320px;background:var(--light);display:flex;align-items:center;justify-content:center;font-size:90px}

/* WeChat */
.tl-wechat{text-align:center}
.tl-wechat h2{margin:0 0 10px}
.tl-wechat p{color:var(--gray)}
.tl-wechat-box{display:inline-block;background:var(--dark);color:#fff;padding:14px 30px;border-radius:50px;font-size:20px;margin:12px 0 20px}

/* Page head / breadcrumb */
.tl-page-head{background:var(--light);padding:40px 0;border-bottom:1px solid #eee}
.tl-page-head h1{margin:6px 0 14px;font-size:32px}
.tl-breadcrumb{color:var(--gray);font-size:14px;margin:0 0 6px}
.tl-back{font-size:14px;padding:8px 18px}

/* Dish single */
.tl-dish-single{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:start}
.tl-dish-single .tl-dish-media img{border-radius:var(--radius);width:100%;box-shadow:var(--shadow)}
.tl-dish-single h1{margin:0 0 6px}
.tl-dish-cat{color:var(--red);font-weight:600;margin:0 0 14px}
.tl-dish-content{margin:16px 0 22px}
.tl-dish-wechat{margin-top:16px;color:var(--gray)}
.tl-dish-norefund{font-size:13px;color:var(--gray);margin-top:10px}

/* Payment */
.tl-pay{max-width:640px;margin:0 auto}
.tl-pay-box{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:34px;text-align:center}
.tl-pay-box h2{color:var(--dark);margin:0 0 8px}
.tl-paypal-placeholder{border:2px dashed #ccc;border-radius:var(--radius);padding:30px;margin:20px 0 0;background:var(--light)}
.tl-pay-hint{color:var(--gray)}
.tl-pay-contact{text-align:center;color:var(--gray);margin-top:20px}
.tl-pay-note{font-size:13px;color:var(--gray);margin-top:16px}
.tl-order-form{text-align:left;margin-top:10px}
.tl-order-form label{display:block;margin-bottom:14px}
.tl-order-form label>span{display:block;font-size:14px;font-weight:600;margin-bottom:4px;color:var(--dark)}
.tl-order-form input[type=text],.tl-order-form input[type=email]{width:100%;padding:11px 14px;border:1px solid #ddd;border-radius:8px;font-size:15px;font-family:inherit}
.tl-order-form input:focus{outline:none;border-color:var(--red)}
.tl-agree{display:flex !important;gap:10px;align-items:flex-start;font-size:14px}
.tl-agree input{width:18px;height:18px;margin-top:2px;flex-shrink:0}
.tl-agree a{text-decoration:underline}
.tl-hp{position:absolute;left:-9999px;opacity:0;height:0;width:0}
.tl-paypal-placeholder .tl-btn-lg{margin-top:16px;width:100%}
.tl-paypal-placeholder .tl-btn-lg:disabled{background:#ccc;cursor:not-allowed}

/* Content (legal pages) */
.tl-content{max-width:780px;margin:0 auto}
.tl-content h2,.tl-content h3{color:var(--red)}

/* Footer */
.tl-footer{background:var(--dark);color:#ccc;padding:46px 0 0;margin-top:40px}
.tl-footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:30px;padding-bottom:30px}
.tl-footer h4{color:#fff;margin:0 0 12px}
.tl-footer-list{list-style:none;margin:0;padding:0}
.tl-footer-list li{margin-bottom:8px}
.tl-footer a{color:#ccc}
.tl-footer a:hover{color:var(--gold)}
.tl-footer-bottom{border-top:1px solid #333;padding:18px 20px;text-align:center;font-size:14px;color:#888}

/* Pagination */
.tl-pagination{text-align:center;margin-top:30px}
.tl-pagination .page-numbers{display:inline-block;padding:6px 12px;margin:0 3px;border:1px solid #ddd;border-radius:6px}
.tl-pagination .page-numbers.current{background:var(--red);color:#fff;border-color:var(--red)}

/* Responsive */
@media(max-width:760px){
  .tl-hero h1{font-size:28px}
  .tl-nav{display:none;position:absolute;top:60px;left:0;right:0;background:#fff;border-bottom:1px solid #eee;padding:14px}
  .tl-nav.open{display:block}
  .tl-nav ul{flex-direction:column;gap:12px}
  .tl-burger{display:block}
  .tl-dish-single{grid-template-columns:1fr}
  .tl-brand-name{font-size:16px}
  .tl-btn-pay{display:none}
}
