﻿/* ===================== */
/* راهنمای سبک Clicktosite */
/* فایل CSS اصلی برای پروژه Clicktosite.ir */
/* ===================== */

/* ===================== */
/* پالت رنگی CLICKTOSITE */
/* ===================== */
:root {
    /* رنگ‌های اصلی - فقط نارنجی و سایه‌های آن */
    --primary-orange: #FF6B00;
    --primary-orange-light: #FF8533;
    --primary-orange-dark: #E55A00;
    --primary-orange-very-light: #FFF5F0;
    
    /* رنگ‌های پس‌زمینه */
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-dark: #1A1A1A;
    
    /* رنگ‌های متن */
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #888888;
    
    /* رنگ‌های وضعیت - بر اساس نارنجی */
    --success: #FF8C00;
    --warning: #FFA500;
    --danger: #FF4500;
    --info: #FF7F50;
    
    /* سایه‌ها */
    --shadow-sm: 0 2px 8px rgba(255, 107, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(255, 107, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(255, 107, 0, 0.16);
    
    /* حاشیه‌ها */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
}

/* ===================== */
/* ریست و پایه */
/* ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-white);
    font-family: 'Segoe UI', Tahoma, 'Vazirmatn', sans-serif;
    direction: rtl;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-orange-dark);
}

/* ===================== */
/* تایپوگرافی */
/* ===================== */
h1 { 
    font-size: 28px; 
    font-weight: 700; 
    color: var(--text-dark); 
    margin-bottom: 20px; 
}

h2 { 
    font-size: 24px; 
    font-weight: 600; 
    color: var(--text-dark); 
    margin-bottom: 16px; 
}

h3 { 
    font-size: 20px; 
    font-weight: 600; 
    color: var(--text-dark); 
    margin-bottom: 12px; 
}

h4 { 
    font-size: 18px; 
    font-weight: 500; 
    color: var(--text-dark); 
    margin-bottom: 8px; 
}

p {
    margin-bottom: 15px;
}

.text-muted { 
    color: var(--text-light); 
}

.text-center { 
    text-align: center; 
}

.text-right { 
    text-align: right; 
}

.text-left { 
    text-align: left; 
}

/* ===================== */
/* هدر با آواتار و منو */
/* ===================== */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    height: 70px;
}

/* آواتار کاربر در سمت چپ */
.user-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    box-shadow: var(--shadow-md);
}

.user-balance {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-orange);
    direction: ltr;
}

/* منوی همبرگری در سمت راست */
.hamburger-menu {
    background: var(--bg-white);
    border-radius: var(--radius-full);
    padding: 10px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-menu:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary-orange);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* منوی کشویی */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background: var(--bg-white);
    box-shadow: -5px 0 30px rgba(255, 107, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 80px 25px 30px;
    overflow-y: auto;
}

.menu-overlay.active {
    right: 0;
}

/* عنوان Clicktosite در منو */
.menu-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #FFE5D6;
}

/* لوگوی بیت‌کوین با عنوان Clicktosite */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bitcoin-logo {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

/* لینک‌های منو */
.menu-links {
    list-style: none;
    margin-bottom: 30px;
}

.menu-links li {
    margin-bottom: 8px;
}

.menu-links a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu-links a:hover {
    background: rgba(255, 107, 0, 0.08);
    color: var(--primary-orange);
    padding-right: 20px;
}

.menu-links a i {
    margin-left: 10px;
    font-size: 18px;
    color: var(--primary-orange);
}

/* بخش پایین منو */
.menu-footer {
    border-top: 1px solid #FFE5D6;
    padding-top: 20px;
    text-align: center;
}

/* ===================== */
/* دکمه‌های CLICKTOSITE */
/* ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    gap: 8px;
    min-width: 120px;
    font-family: 'Segoe UI', 'Vazirmatn', sans-serif;
}

/* دکمه نارنجی اصلی */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-orange-dark), var(--primary-orange));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.4);
}

/* دکمه‌های دیگر - همه بر اساس نارنجی */
.btn-success { 
    background: linear-gradient(135deg, var(--success), #FFA533); 
    color: white; 
}

.btn-success:hover { 
    background: linear-gradient(135deg, #E57D00, var(--success)); 
    transform: translateY(-2px); 
}

.btn-danger { 
    background: linear-gradient(135deg, var(--danger), #FF5533); 
    color: white; 
}

.btn-danger:hover { 
    background: linear-gradient(135deg, #E53D00, var(--danger)); 
    transform: translateY(-2px); 
}

.btn-info { 
    background: linear-gradient(135deg, var(--info), #FF9F80); 
    color: white; 
}

.btn-info:hover { 
    background: linear-gradient(135deg, #E56F40, var(--info)); 
    transform: translateY(-2px); 
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
}

.btn-outline:hover {
    background: var(--primary-orange);
    color: white;
}

/* دکمه سفید روی پس‌زمینه نارنجی */
.btn-on-orange {
    background: white;
    color: var(--primary-orange);
    border: 2px solid white;
}

.btn-on-orange:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-orange-dark);
}

/* دکمه‌های کوچک و بزرگ */
.btn-sm { 
    padding: 8px 16px; 
    font-size: 13px; 
    min-width: 90px; 
}

.btn-lg { 
    padding: 16px 32px; 
    font-size: 16px; 
    min-width: 150px; 
}

/* دکمه بلوک */
.btn-block {
    display: block;
    width: 100%;
}

/* ===================== */
/* کارت‌ها */
/* ===================== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #FFE5D6;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange-light);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #FFE5D6;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 4px;
}

/* ===================== */
/* فرم‌ها و ورودی‌ها */
/* ===================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #FFE5D6;
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--bg-white);
    font-family: 'Segoe UI', 'Vazirmatn', sans-serif;
    direction: rtl;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-input::placeholder {
    color: #CCCCCC;
    opacity: 0.7;
}

/* ===================== */
/* کامپوننت‌های خاص */
/* ===================== */

/* تراکنش‌ها */
.transaction-card {
    background: linear-gradient(135deg, #FFF9F5, #FFF5F0);
    border: 1px solid #FFE5D6;
    border-radius: var(--radius-lg);
    padding: 20px;
}

/* آدرس کیف پول */
.wallet-address {
    background: #FFF9F5;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    border: 1px dashed #FFD1B3;
    color: var(--text-gray);
    direction: ltr;
    text-align: center;
    word-break: break-all;
}

/* کامپوننت تبلیغات PTC */
.ad-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.ad-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid #FFE5D6;
    transition: all 0.3s ease;
}

.ad-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange);
}

.ad-timer {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
}

/* استاتوس‌ها */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
}

.status-active { 
    background: #FFF5F0; 
    color: var(--primary-orange-dark); 
}

.status-pending { 
    background: #FFE5D6; 
    color: var(--warning); 
}

.status-completed { 
    background: #FFE5D6; 
    color: var(--primary-orange); 
}

.status-cancelled { 
    background: #FFE5D6; 
    color: var(--danger); 
}

/* ===================== */
/* ابزارک‌ها */
/* ===================== */
.balance-widget {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
    color: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0;
}

.balance-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ===================== */
/* جداول */
/* ===================== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th {
    background: #FFF5F0;
    padding: 16px;
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid #FFE5D6;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid #FFE5D6;
    color: var(--text-gray);
}

.table tr:hover td {
    background: #FFF5F0;
}

/* ===================== */
/* محتوای اصلی */
/* ===================== */
.main-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 90px; /* فضای برای هدر */
}

/* ===================== */
/* صفحات احراز هویت */
/* ===================== */
.auth-container {
    max-width: 500px;
    margin: 120px auto 50px;
    padding: 20px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo svg {
    width: 180px;
    height: 180px;
}

.form-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid #FFE5D6;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #FFE5D6;
    color: var(--text-gray);
    font-size: 14px;
}

/* هشدارها و پیام‌ها */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: #FFE5D6;
    color: var(--danger);
    border: 1px solid #FFB380;
}

.alert-success {
    background: #FFE5D6;
    color: var(--success);
    border: 1px solid #FFD1B3;
}

.alert-info {
    background: #FFE5D6;
    color: var(--info);
    border: 1px solid #FFB380;
}

/* ===================== */
/* رسپانسیو */
/* ===================== */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
        height: 60px;
    }
    
    .user-avatar {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .user-balance {
        font-size: 11px;
    }
    
    .hamburger-menu {
        width: 45px;
        height: 45px;
    }
    
    .bitcoin-logo {
        width: 140px;
        height: 140px;
    }
    
    .main-content { 
        padding: 15px; 
        padding-top: 80px; 
    }
    
    .menu-overlay { 
        width: 280px; 
    }
    
    .btn { 
        padding: 10px 20px; 
        min-width: 110px; 
    }
    
    .card { 
        padding: 20px; 
    }
    
    h1 { 
        font-size: 24px; 
    }
    
    h2 { 
        font-size: 20px; 
    }
    
    .auth-container {
        margin: 100px auto 30px;
        padding: 15px;
    }
    
    .form-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 8px 10px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .hamburger-menu {
        width: 40px;
        height: 40px;
    }
    
    .bitcoin-logo {
        width: 120px;
        height: 120px;
    }
    
    .menu-overlay { 
        width: 100%; 
    }
    
    .main-content { 
        padding: 10px; 
        padding-top: 70px; 
    }
    
    .ad-container { 
        grid-template-columns: 1fr; 
    }
    
    .auth-container {
        margin: 90px auto 20px;
        padding: 10px;
    }
    
    .auth-logo svg {
        width: 150px;
        height: 150px;
    }
}