@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

header {
    background-color: #222;
    color: white;
    padding: 15px;
    font-size: 0.6rem;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.post {
    background: white;
    margin: 15px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.post img {
    width: 100%;
    border-radius: 10px;
}

h3 {
    color: #222;
    font-size: 1.2rem;
    margin: 10px 0;
}

p {
    color: #666;
    font-size: 1rem;
}

#load-more {
    background: #ff6600;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 20px;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

#load-more:hover {
    background: #e65c00;
    transform: scale(1.05);
}

#load-more:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#load-more {
    animation: pulse 1.5s infinite;
}

.btn-home {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-home:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.btn-home i {
    margin-right: 5px;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-in-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.post img {
    transition: transform 0.3s ease-in-out;
}

.post:hover img {
    transform: scale(1.05);
}
#post-count {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 15px 0;
    color: #333;
}
#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #222;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: none;
    transition: 0.3s;
}

#scrollToTop:hover {
    background: #444;
}
/* ======= قسم التواصل الاجتماعي بتصميم عصري ======= */
#social-media {
    text-align: center;
    padding: 50px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
    width: 85%;
    max-width: 800px;
}

#social-media h2 {
    font-size: 30px;
    font-weight: bold;
    color: #0d9915;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

#social-media p {
    font-size: 18px;
    color: #409399;
    margin-bottom: 25px;
}

/* ======= تصميم الأيقونات بشكل متوهج ======= */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.social-icons a::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    top: 50%;
    left: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) rotate(45deg);
    transition: 0.4s;
}

.social-icons a:hover::before {
    width: 140%;
    height: 140%;
    background: rgba(255, 255, 255, 0.2);
}

.social-icons a:hover {
    transform: scale(1.15);
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.2);
}

/* ======= ألوان كل منصة اجتماعية ======= */
.facebook { background: #1877f2; }
.telegram { background: #0088cc; }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.twitter { background: #1da1f2; }
.tiktok { background: #000; }
.whatsapp { background: #25d366; }

/* ======= الفوتر بشكل احترافي ======= */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
  }
