/*
Theme Name: P2P Matching Theme
Theme URI: https://github.com/example/p2p-theme
Description: High-Performance, RTL-native Persian UI presentation theme for P2P Matching Platform. Core Web Vitals optimized with zero heavy framework bloat.
Author: Principal PHP & UX Systems Architect
Author URI: https://security.example.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: p2p-theme
Domain Path: /languages
Tags: rtl-language-support, custom-colors, custom-menu, microformats, post-formats
*/

/* Vazirmatn Persian Font & Core Layout */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
  --p2p-primary: #1e3a8a;
  --p2p-primary-hover: #172554;
  --p2p-accent: #0284c7;
  --p2p-success: #059669;
  --p2p-warning: #d97706;
  --p2p-danger: #dc2626;
  --p2p-surface: #ffffff;
  --p2p-surface-subtle: #f8fafc;
  --p2p-border: #e2e8f0;
  --p2p-text: #0f172a;
  --p2p-text-muted: #64748b;
  --font-persian: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;
}

body {
  margin: 0;
  padding: 0;
  direction: rtl;
  text-align: right;
  font-family: var(--font-persian);
  background-color: #f1f5f9;
  color: var(--p2p-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  box-sizing: border-box;
}

a {
  color: var(--p2p-accent);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--p2p-primary);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.card {
  background: var(--p2p-surface);
  border: 1px solid var(--p2p-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}

.btn-primary {
  background: var(--p2p-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--p2p-primary-hover);
}

.btn-success {
  background: var(--p2p-success);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--p2p-border);
  color: var(--p2p-text);
}
.btn-outline:hover {
  background: var(--p2p-surface-subtle);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
}
.badge-buy { background: #dbeafe; color: #1e40af; }
.badge-sell { background: #fef3c7; color: #92400e; }
.badge-verified { background: #dcfce7; color: #166534; }
.badge-pending { background: #f1f5f9; color: #475569; }

/* Zero-Funds Notice Box */
.zero-funds-banner {
  background: #fffbeb;
  border: 1px solid #fef08a;
  color: #854d0e;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
