/* visitor-homepage.css */
:root {
    --primary-color: #007cba;
    --primary-dark: #005a87;
    --secondary-color: #46b450;
    --accent-color: #ffb900;
    --danger-color: #dc3232;
    --text-dark: #2c3338;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* التنسيقات العامة */
.wm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الهيدر */
.wm-visitor-header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.wm-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.wm-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wm-logo {
    height: 40px;
    width: auto;
}

.wm-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.wm-nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.wm-nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.wm-nav-link:hover {
    color: var(--primary-color);
}

/* الأزرار */
.wm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}

.wm-btn-primary {
    background: var(--primary-color);
    color: white;
}

.wm-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.wm-btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.wm-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.wm-btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.wm-btn-full {
    width: 100%;
    justify-content: center;
}

/* قسم الهيرو */
.wm-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 80px;
}

.wm-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.wm-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.wm-highlight {
    color: var(--accent-color);
}

.wm-hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.wm-hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.wm-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.wm-stat-item {
    text-align: center;
}

.wm-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

.wm-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* معاينة الداشبورد */
.wm-dashboard-preview {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.wm-dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.wm-preview-image {
    width: 100%;
    height: auto;
    display: block;
}

.wm-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
}

.wm-live-data {
    display: flex;
    justify-content: space-around;
}

.wm-data-item {
    text-align: center;
}

.wm-data-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.wm-data-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* قسم المميزات */
.wm-features-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.wm-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.wm-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.wm-section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.wm-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.wm-feature-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.wm-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.wm-feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.wm-feature-icon .wm-icon {
    font-size: 2rem;
    color: white;
}

.wm-feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.wm-feature-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.wm-feature-list {
    list-style: none;
    padding: 0;
    text-align: right;
}

.wm-feature-list li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    position: relative;
}

.wm-feature-list li:before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    margin-left: 0.5rem;
}

/* الأيقونات */
.wm-icon {
    font-style: normal;
}

.wm-icon-play:before { content: "▶"; }
.wm-icon-eye:before { content: "👁"; }
.wm-icon-meter:before { content: "⏱"; }
.wm-icon-reading:before { content: "📊"; }
.wm-icon-bill:before { content: "🧾"; }
.wm-icon-analytics:before { content: "📈"; }
.wm-icon-mobile:before { content: "📱"; }
.wm-icon-security:before { content: "🔒"; }
.wm-icon-phone:before { content: "📞"; }
.wm-icon-email:before { content: "✉️"; }
.wm-icon-support:before { content: "💬"; }
.wm-icon-send:before { content: "➤"; }

/* قسم الإحصائيات */
.wm-statistics-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.wm-stats-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.wm-stats-charts {
    display: grid;
    gap: 2rem;
}

.wm-chart-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.wm-chart-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.wm-chart-container {
    height: 300px;
    position: relative;
}

.wm-live-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.wm-live-stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.wm-live-stat-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.wm-live-indicator {
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.wm-live-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wm-live-stat-item:last-child {
    border-bottom: none;
}

/* قسم كيف يعمل */
.wm-how-it-works-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.wm-steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.wm-steps-container:before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: var(--primary-color);
    z-index: 1;
}

.wm-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.wm-step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    position: relative;
}

.wm-step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.wm-step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* قسم اتصل بنا */
.wm-contact-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.wm-contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.wm-contact-info {
    padding-right: 2rem;
}

.wm-contact-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.wm-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wm-contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.wm-contact-method .wm-icon {
    font-size: 1.5rem;
}

.wm-contact-method h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-dark);
}

.wm-contact-method p {
    margin: 0;
    color: var(--text-light);
}

/* نموذج الاتصال */
.wm-contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
}

.wm-form-group {
    margin-bottom: 1.5rem;
}

.wm-form-group input,
.wm-form-group select,
.wm-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.wm-form-group input:focus,
.wm-form-group select:focus,
.wm-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* الفوتر */
.wm-visitor-footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.wm-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.wm-footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.wm-footer-description {
    line-height: 1.6;
    opacity: 0.8;
    max-width: 400px;
}

.wm-footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.wm-footer-links {
    list-style: none;
    padding: 0;
}

.wm-footer-links li {
    margin-bottom: 0.5rem;
}

.wm-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.wm-footer-links a:hover {
    color: white;
}

.wm-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
}

/* التجاوب */
@media (max-width: 768px) {
    .wm-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .wm-hero-title {
        font-size: 2.5rem;
    }
    
    .wm-hero-actions {
        flex-direction: column;
    }
    
    .wm-hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wm-features-grid {
        grid-template-columns: 1fr;
    }
    
    .wm-stats-container {
        grid-template-columns: 1fr;
    }
    
    .wm-steps-container {
        grid-template-columns: 1fr;
    }
    
    .wm-steps-container:before {
        display: none;
    }
    
    .wm-contact-content {
        grid-template-columns: 1fr;
    }
    
    .wm-footer-content {
        grid-template-columns: 1fr;
    }
    
    .wm-nav-menu {
        display: none;
    }
}