/* Base Styles & Variables */
:root {
    --primary-blue: #1D3362;
    --primary-orange: #F05525;
    --bg-color: #F5F7FA;
    --surface-color: #FFFFFF;
    --surface-border: #E2E8F0;

    --text-main: #1D3362;
    --text-muted: #64748B;
    --text-inverse: #FFFFFF;

    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--primary-blue);
    color: var(--text-inverse);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-inverse);
}

.logo i {
    color: var(--primary-orange);
    font-size: 1.75rem;
}

.lang-btn {
    background: var(--primary-orange);
    border: none;
    color: var(--text-inverse);
    padding: 0.5rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(240, 85, 37, 0.3);
}

.lang-btn:hover {
    background-color: #d84b20;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(240, 85, 37, 0.4);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1.5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Accordion */
.accordion-item {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-blue);
    cursor: pointer;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 700;
    transition: var(--transition);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title i {
    font-size: 1.5rem;
    color: var(--primary-orange);
}

.accordion-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--primary-orange);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
    opacity: 1;
    padding-bottom: 1.5rem;
}

/* Steps Layout */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 0.5rem;
}

.step-item {
    display: flex;
    gap: 1rem;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.2rem;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-orange);
    color: var(--text-inverse);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(240, 85, 37, 0.3);
}

.step-line {
    width: 2px;
    flex-grow: 1;
    background-color: var(--primary-orange);
    opacity: 0.2;
    border-radius: 2px;
}

.step-item:last-child .step-line {
    display: none;
}

.step-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 600;
    margin: 0;
}

.step-screenshot {
    width: 100%;
    max-width: 350px;
    height: 450px;
    background: var(--bg-color);
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.step-screenshot.auto-height {
    height: auto;
}

.step-screenshot.auto-height img {
    height: auto;
}

.step-screenshot:hover {
    background: #E2E8F0;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.step-screenshot i {
    font-size: 2.5rem;
    color: #94A3B8;
    transition: var(--transition);
}

.step-screenshot:hover i {
    color: var(--primary-blue);
}

.step-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--text-muted);
    background-color: var(--surface-color);
    border-top: 1px solid var(--surface-border);
    margin-top: auto;
}

/* Responsive */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

    .accordion-header {
        font-size: 1rem;
        padding: 1rem;
    }

    .header-title i {
        font-size: 1.25rem;
    }
}