/* ============================================
   ایلیا کامپیوتر - Internal Pages Styles
   (about, contact, 404, etc.)
   Extends home.css with page-specific styles
   ============================================ */

/* ============================================
   PAGE HERO (small banner at top)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    padding: 80px 0;
    padding-top: 152px; /* 80px original + 72px for fixed header */
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 400px; height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 300px; height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}
.page-hero .container { position: relative; z-index: 1; }
.page-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.page-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   STORY SECTION (about page)
   ============================================ */
.story-section {
    padding: 96px 0;
    background: #fff;
}
.story-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    align-items: center;
}
.story-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1E293B;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}
.story-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #475569;
    margin-bottom: 20px;
}
.story-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.story-svg {
    max-width: 400px;
    width: 100%;
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   VALUES SECTION
   ============================================ */
.values-section {
    padding: 96px 0;
    background: #F8FAFC;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.value-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}
.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.12);
    border-color: #C7D2FE;
}
.value-icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
}
.value-icon-blue { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); color: #2563EB; }
.value-icon-purple { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); color: #7C3AED; }
.value-icon-green { background: linear-gradient(135deg, #D1FAE5, #A7F3D0); color: #059669; }
.value-icon-orange { background: linear-gradient(135deg, #FED7AA, #FDBA74); color: #EA580C; }
.value-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 12px;
}
.value-card p {
    color: #64748B;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   ABOUT PRODUCTS SECTION
   ============================================ */
.about-products-section {
    padding: 96px 0;
    background: #fff;
}
.about-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.about-product-card {
    padding: 40px 32px;
    background: linear-gradient(180deg, #FAFBFF 0%, #fff 100%);
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
}
.about-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.15);
    border-color: #C7D2FE;
}
.about-product-icon {
    width: 96px; height: 96px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    color: #6366F1;
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease;
}
.about-product-card:hover .about-product-icon {
    transform: rotate(-5deg) scale(1.05);
}
.about-product-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 12px;
}
.about-product-card p {
    color: #64748B;
    line-height: 1.7;
}

/* ============================================
   ABOUT WORK METHOD
   ============================================ */
.about-work-method {
    padding: 96px 0;
    background: linear-gradient(180deg, #fff 0%, #F8FAFC 100%);
}
.about-method-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}
.about-method-card {
    background: #fff;
    padding: 40px 32px;
    border-radius: 24px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.about-method-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 6px; height: 100%;
}
.about-method-cash::before { background: linear-gradient(180deg, #10B981, #059669); }
.about-method-credit::before { background: linear-gradient(180deg, #6366F1, #8B5CF6); }
.about-method-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}
.about-method-icon-wrap {
    width: 72px; height: 72px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}
.about-method-cash .about-method-icon-wrap { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.about-method-credit .about-method-icon-wrap { background: rgba(99, 102, 241, 0.1); color: #6366F1; }
.about-method-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 12px;
}
.about-method-card > p {
    color: #64748B;
    line-height: 1.7;
    margin-bottom: 20px;
}
.about-method-features { display: flex; flex-direction: column; gap: 10px; }
.about-method-features li {
    position: relative;
    padding-right: 28px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}
.about-method-features li::before {
    content: '';
    position: absolute;
    right: 0; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.15;
}
.about-method-features li::after {
    content: '✓';
    position: absolute;
    right: 4px; top: 50%; transform: translateY(-50%);
    color: inherit;
    font-size: 11px;
    font-weight: 900;
}
.about-method-cash .about-method-features li { color: #10B981; }
.about-method-credit .about-method-features li { color: #6366F1; }

/* ============================================
   CONTACT CARDS SECTION
   ============================================ */
.contact-cards-section {
    padding: 80px 0;
    background: #F8FAFC;
}
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.contact-big-card {
    background: #fff;
    padding: 40px 32px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}
.contact-big-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.12);
    border-color: #C7D2FE;
}
.contact-big-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
}
.contact-icon-blue { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); color: #2563EB; }
.contact-icon-purple { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); color: #7C3AED; }
.contact-icon-green { background: linear-gradient(135deg, #D1FAE5, #A7F3D0); color: #059669; }
.contact-icon-orange { background: linear-gradient(135deg, #FED7AA, #FDBA74); color: #EA580C; }
.contact-big-label {
    font-size: 0.95rem;
    color: #64748B;
    margin-bottom: 12px;
    font-weight: 600;
}
.contact-big-value {
    font-size: 1.3rem;
    color: #1E293B;
    font-weight: 700;
    line-height: 1.5;
    word-break: break-word;
    margin-bottom: 12px;
    display: block;
}
a.contact-big-value:hover { color: #6366F1; }
.contact-big-desc {
    color: #94A3B8;
    font-size: 0.9rem;
}

/* ============================================
   CONTACT CTA SECTION
   ============================================ */
.contact-cta-section {
    padding: 80px 0;
    background: #fff;
}
.contact-cta-box {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 28px;
    padding: 56px 48px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.contact-cta-box::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.cta-desc {
    font-size: 1.05rem;
    opacity: 0.95;
    line-height: 1.7;
    margin-bottom: 24px;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-visual {
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
}
.cta-visual svg { max-width: 280px; }

/* ============================================
   404 PAGE
   ============================================ */
.error-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
    padding: 40px 20px;
    padding-top: 112px; /* 40px + 72px for fixed header */
}
.error-content {
    text-align: center;
    max-width: 600px;
}
.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -4px;
}
.error-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 16px;
}
.error-desc {
    color: #64748B;
    line-height: 1.7;
    margin-bottom: 32px;
    font-size: 1.05rem;
}
.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.error-actions .btn-primary {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.error-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}
.error-actions .btn-outline {
    background: #fff;
    color: #6366F1;
    border: 2px solid #C7D2FE;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.25s ease;
}
.error-actions .btn-outline:hover {
    background: #EEF2FF;
    border-color: #6366F1;
}

/* ============================================
   CONTENT PAGE (legal, cooperation-terms, buying-guide)
   ============================================ */
.content-section {
    padding: 80px 0;
    background: #fff;
}
.content-container {
    max-width: 860px;
    margin: 0 auto;
}
.content-block {
    margin-bottom: 48px;
}
.content-block:last-child { margin-bottom: 0; }
.content-block-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E2E8F0;
}
.content-block-title .content-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #fff;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}
.content-block p {
    color: #475569;
    line-height: 1.9;
    margin-bottom: 14px;
    font-size: 1rem;
}
.content-block p:last-child { margin-bottom: 0; }
.content-block ul {
    list-style: none;
    padding-right: 0;
    margin: 12px 0;
}
.content-block ul li {
    position: relative;
    padding-right: 28px;
    color: #475569;
    line-height: 1.9;
    margin-bottom: 8px;
}
.content-block ul li::before {
    content: '';
    position: absolute;
    right: 8px;
    top: 12px;
    width: 8px;
    height: 8px;
    background: #6366F1;
    border-radius: 50%;
}
.content-block strong { color: #1E293B; font-weight: 700; }
.content-callout {
    background: linear-gradient(135deg, #EEF2FF, #F8FAFC);
    border-right: 4px solid #6366F1;
    padding: 20px 24px;
    border-radius: 12px;
    margin: 24px 0;
    color: #1E293B;
    font-weight: 500;
}
.content-callout strong { color: #6366F1; }

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-section {
    padding: 80px 0;
    background: #F8FAFC;
}
.faq-container {
    max-width: 860px;
    margin: 0 auto;
}
.faq-item {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
}
.faq-item:hover {
    border-color: #C7D2FE;
    box-shadow: 0 6px 20px -5px rgba(99, 102, 241, 0.12);
}
.faq-item.active {
    border-color: #6366F1;
    box-shadow: 0 6px 20px -5px rgba(99, 102, 241, 0.2);
}
.faq-question {
    width: 100%;
    text-align: right;
    background: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1E293B;
}
.faq-question:hover { color: #6366F1; }
.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: #6366F1;
    color: #fff;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 24px;
}
.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 24px 20px;
}
.faq-answer p {
    color: #475569;
    line-height: 1.9;
    margin-bottom: 12px;
}
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { list-style: none; padding-right: 0; margin: 12px 0; }
.faq-answer ul li {
    position: relative;
    padding-right: 24px;
    color: #475569;
    line-height: 1.9;
    margin-bottom: 6px;
}
.faq-answer ul li::before {
    content: '←';
    position: absolute;
    right: 0;
    color: #6366F1;
    font-weight: 700;
}

/* Steps (buying guide) */
.steps-list {
    counter-reset: step;
    list-style: none;
    padding-right: 0;
    margin: 32px 0;
}
.steps-list li {
    counter-increment: step;
    position: relative;
    padding-right: 72px;
    margin-bottom: 32px;
    min-height: 56px;
}
.steps-list li::before {
    content: counter(step);
    position: absolute;
    right: 0;
    top: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
}
.steps-list li::after {
    content: '';
    position: absolute;
    right: 24px;
    top: 48px;
    bottom: -32px;
    width: 2px;
    background: linear-gradient(180deg, #C7D2FE, transparent);
}
.steps-list li:last-child::after { display: none; }
.steps-list li strong {
    display: block;
    color: #1E293B;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.steps-list li p {
    color: #64748B;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .story-grid { grid-template-columns: 1fr; gap: 32px; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-cta-box { grid-template-columns: 1fr; padding: 40px 32px; text-align: center; }
    .cta-actions { justify-content: center; }
}

@media (max-width: 768px) {
    .page-hero { padding: 56px 0; }
    .page-title { font-size: 2rem; }
    .page-subtitle { font-size: 1rem; }
    .story-section, .values-section, .about-products-section, .about-work-method, .contact-cards-section, .contact-cta-section { padding: 56px 0; }
    .values-grid { grid-template-columns: 1fr; }
    .about-products-grid { grid-template-columns: 1fr; }
    .about-method-cards { grid-template-columns: 1fr; }
    .contact-cards-grid { grid-template-columns: 1fr; }
    .contact-cta-box { padding: 32px 24px; }
    .cta-title { font-size: 1.5rem; }
    .error-code { font-size: 5rem; }
    .error-title { font-size: 1.4rem; }
    /* Content pages */
    .content-section { padding: 48px 0; }
    .content-block-title { font-size: 1.2rem; }
    .content-block p { font-size: 0.95rem; }
    /* FAQ */
    .faq-section { padding: 48px 0; }
    .faq-question { font-size: 0.95rem; padding: 16px 18px; }
    .faq-answer { padding: 0 18px; }
    .faq-item.active .faq-answer { padding: 0 18px 16px; }
    /* Steps */
    .steps-list li { padding-right: 56px; }
    .steps-list li::before { width: 40px; height: 40px; font-size: 1.1rem; }
    .steps-list li::after { right: 20px; }
}

@media (max-width: 480px) {
    .page-title { font-size: 1.7rem; }
    .story-title { font-size: 1.7rem; }
    .contact-big-card { padding: 28px 20px; }
    .contact-big-value { font-size: 1.1rem; }
    .error-code { font-size: 4rem; }
}
