/* ===============================
   Reset & Global Styles
   =============================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    background: #2f363d;
    color: #c9d1d9;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

button:hover {
    background: #3b4252;
    transform: scale(1.05);
}

/* ===============================
   Header & Navigation
   =============================== */
header {
    background: #161b22;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* ===============================
   Main Content
   =============================== */
main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem 2rem;
}

h1, h2, h3 {
    color: #58a6ff;
    margin-bottom: 0.5rem;
}

p {
    color: #c9d1d9;
    margin-bottom: 1rem;
}

/* ===============================
   Forms
   =============================== */
input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid #2f363d;
    background: #161b22;
    color: #c9d1d9;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88,166,255,0.2);
}

/* ===============================
   Script Cards
   =============================== */
.script-card {
    background: #161b22;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.script-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}

.script-card h3 {
    margin-bottom: 0.5rem;
}

.script-card pre {
    background: #0d1117;
    padding: 1rem;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 0.5rem;
    color: #c9d1d9;
    font-size: 0.95rem;
}

.script-card button {
    background: #58a6ff;
    color: #0d1117;
    font-weight: bold;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.script-card button:hover {
    background: #1f6feb;
    color: #fff;
    transform: scale(1.05);
}

/* ===============================
   Ratings
   =============================== */
.rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.star {
    cursor: pointer;
    color: gold;
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.star:hover {
    transform: scale(1.3);
}

.rating-info {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    color: #8b949e;
}

/* ===============================
   Responsive
   =============================== */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    header {
        justify-content: center;
        gap: 0.5rem;
    }

    .script-card pre {
        font-size: 0.85rem;
    }

    button {
        width: 100%;
    }
}



/* ===============================
   Main Navigation Buttons
   =============================== */
.nav-button {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    margin: 0 0.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* زر نشر السكربتات */
#publish-btn {
    background: linear-gradient(135deg, #ff7f50, #ff4500);
    color: #fff;
}

#publish-btn:hover {
    background: linear-gradient(135deg, #ff6333, #ff2200);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* زر عرض السكربتات */
#view-btn {
    background: linear-gradient(135deg, #1e90ff, #00bfff);
    color: #fff;
}

#view-btn:hover {
    background: linear-gradient(135deg, #1c86ee, #009acd);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* زر الهاكات */
#hacks-btn {
    background: linear-gradient(135deg, #32cd32, #228b22);
    color: #fff;
}

#hacks-btn:hover {
    background: linear-gradient(135deg, #2eb82e, #196619);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Responsive للأزرار */
@media (max-width: 768px) {
    .nav-button {
        width: 100%;
        margin: 0.5rem 0;
        font-size: 1rem;
    }
}
