/* Main Website Styles */

/* Global Styles */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Story Cards */
.story-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.story-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.story-card .card-body {
    padding: 1.25rem;
}

/* Category Badges */
.category-badge {
    background: var(--light-color);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s;
}

.category-badge:hover {
    background: var(--primary-color);
    color: white;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #3a7bc8;
    border-color: #3a7bc8;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 40px 0 20px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .story-card .card-img-top {
        height: 200px;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Alert Notifications */
.alert-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
}

/* Preview Viewer */
.preview-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    min-height: 400px;
    position: relative;
}

.preview-container .page-placeholder {
    border: 1px dashed #dee2e6;
    border-radius: 5px;
    padding: 40px;
    margin: 10px 0;
    background: white;
    text-align: center;
}
/* Dropdown Fix */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.375rem;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-item:hover {
    color: #1e2125;
    background-color: #e9ecef;
}

.navbar .dropdown-toggle {
    cursor: pointer;
}

/* تحسينات إضافية */
.navbar-nav .nav-link {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #667eea !important;
}

.navbar-nav .nav-link.active {
    color: #667eea !important;
    font-weight: 600;
}

.btn-primary {
    background: #667eea;
    border-color: #667eea;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #5a67d8;
    border-color: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}
/* تحسين عرض الصور */
.story-card .card-img-top {
    height: 250px;
    object-fit: cover;
    background-color: #f8f9fa;
}

.story-card .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* إضافة مؤشر للصور المفقودة */
.story-card .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    height: 250px;
}

.story-card .no-image i {
    font-size: 4rem;
    opacity: 0.7;
}