/*
Theme Name: دامین مارکت
Theme URI: https://domainmarket.ir
Author: Domain Market Team
Author URI: https://domainmarket.ir
Description: قالب فروشگاهی حرفه‌ای با طراحی اسلیمی برای خدمات میزبانی وب و ثبت دامنه. سازگار با ووکامرس.
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: domain-market
Tags: rtl, translation-ready, woocommerce, custom-menu, custom-logo, featured-images
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
WC requires at least: 7.0
WC tested up to: 8.4
*/

/* ===================================
   CSS Variables - Light Theme
=================================== */
:root {
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-200: #bbf7d0;
    --primary-300: #86efac;
    --primary-400: #4ade80;
    --primary-500: #22c55e;
    --primary-600: #16a34a;
    --primary-700: #15803d;
    --primary-800: #166534;
    --primary-900: #14532d;

    --gold-50: #fffbeb;
    --gold-100: #fef3c7;
    --gold-200: #fde68a;
    --gold-300: #fcd34d;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
    --gold-700: #b45309;
    --gold-800: #92400e;
    --gold-900: #78350f;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --white: #ffffff;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    --border-light: #e5e7eb;
    --border-medium: #d1d5db;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --transition: all 0.3s ease;
}

/* ===================================
   Base Styles
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    direction: rtl;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   Typography
=================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ===================================
   Utility Classes
=================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-600); }
.text-gold { color: var(--gold-600); }

/* ===================================
   Buttons
=================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: var(--gray-900);
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-500);
    color: var(--primary-600);
}

.btn-outline:hover {
    background: var(--primary-500);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary-600);
    border: 1px solid var(--border-light);
}

.btn-white:hover {
    background: var(--gray-50);
    border-color: var(--primary-300);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ===================================
   Section Title
=================================== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title .ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-title .ornament .line {
    width: 60px;
    height: 2px;
    background: linear-gradient(to left, var(--primary-400), transparent);
    border-radius: 2px;
}

.section-title .ornament .line:last-child {
    background: linear-gradient(to right, var(--primary-400), transparent);
}

.section-title .ornament .star {
    color: var(--primary-500);
    font-size: 1.5rem;
}

.section-title h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.875rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===================================
   Eslimi (Islamic Geometric) Pattern
=================================== */
.eslimi-pattern {
    position: relative;
}

.eslimi-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='none' stroke='%2322c55e' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='10' fill='none' stroke='%2322c55e' stroke-width='0.5'/%3E%3Ccircle cx='30' cy='30' r='20' fill='none' stroke='%2322c55e' stroke-width='0.3'/%3E%3C/svg%3E");
    pointer-events: none;
}

.eslimi-border {
    border: 1px solid var(--border-light);
    position: relative;
}

.eslimi-border::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-400), transparent);
    border-radius: 0 0 4px 4px;
}

/* ===================================
   Card Styles
=================================== */
.card {
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

/* ===================================
   Animations
=================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-primary {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.animate-pulse-primary {
    animation: pulse-primary 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ===================================
   Scrollbar
=================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-500);
}

/* ===================================
   Form Elements
=================================== */
input, select, textarea {
    font-family: inherit;
    font-size: 0.875rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* ===================================
   Print Styles
=================================== */
@media print {
    .no-print { display: none !important; }
    body { background: white !important; }
}
