:root {
 
    
    --light-button-bg: #4a90e2; 
    --light-button-hover: #3a7bc8;
    
    --dark-button-bg: #6c757d;  
    --dark-button-hover: #5a6268;
    
   


body {
    background-color: var(--light-bg-color, #f4f4f9); 
    color: var(--light-text-color, #333); 
    font-family: 'Arial', sans-serif;
    text-align: center;
    padding: 20px;
    margin: 0;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s; 
}

body.dark-mode {
    background-color: var(--dark-bg-color, #121212);
    color: var(--dark-text-color, #e0e0e0); 
    --main-color: var(--dark-bg-color);
    --text-color: var(--dark-text-color);
    --card-bg: var(--dark-card-bg);
    --shadow-color: var(--dark-shadow);
    --button-bg: var(--dark-button-bg);
    --button-hover: var(--dark-button-hover);
}


header h1 {
    color: #4CAF50; 
    font-size: 2.5em;
    margin-bottom: 5px;
}

header p {
    color: #9e9e9e;
    font-size: 1.1em;
}

#liveClock {
    font-size: 1.3em;
    font-weight: bold;
    color: #4CAF50; 
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    #liveClock {
        font-size: 1em;
    }
}


.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px auto;
    max-width: 700px;
}

#urlInput {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    background-color: #1e1e1e;
    color: #ffffff;
    outline: none;
    transition: all 0.3s;
}

#urlInput::placeholder {
    color: #616161;
}

#urlInput:focus {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.5)
}

#searchButton {
    padding: 15px 30px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s, transform 0.1s;
}

#searchButton:hover {
    background-color: #45a049; 
    transform: translateY(-2px);
}



.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}



.platform-card {
  
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    height: 120px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}


.platform-card i {
    font-size: 2.5em; 
    margin-bottom: 5px;
}

.platform-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}


.youtube { background: linear-gradient(135deg, #FF0000, #c40000); }
.facebook { background: linear-gradient(135deg, #1877F2, #0e5dbf); }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); } /* Gradient */
.tiktok { background: linear-gradient(135deg, #00f2ea, #010101); color: white; } /* الألوان المميزة لتيك توك */
.x-twitter { background: #000000; border: 2px solid #1da1f2; }
.chatgpt { background: linear-gradient(135deg, #6aa588, #5a8d71); } /* لون مميز لأدوات الذكاء الاصطناعي */
.gemini { background: linear-gradient(135deg, #1da1f2, #7B68EE); }
.gmail { background: linear-gradient(135deg, #DB4437, #C33126); } /* أحمر غوغل */
.drive { background: linear-gradient(135deg, #4CAF50, #3C8F41); } /* أخضر غوغل */
.translate { background: linear-gradient(135deg, #4285F4, #366EB7); } /* أزرق غوغل */
.wikipedia { background: linear-gradient(135deg, #000000, #4A4A4A); border: 2px solid #fff; } /* لون محايد */

footer {
    padding-top: 20px;
    color: #616161;
}

@media (max-width: 600px) {
    
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    header h1 {
        font-size: 1.8em;
    }

    #urlInput, #searchButton {
        padding: 12px;
        font-size: 0.9em;
    }
    
   
    .platform-card {
        height: 100px;
    }

    .platform-card i {
        font-size: 2em; 
    }
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--button-bg);
    color: white;
    border: none;
    border-radius: 50%; 
    width: 45px; 
    height: 45px; 
    cursor: pointer;
    font-size: 1.2em;
    box-shadow: var(--shadow-color);
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    z-index: 1000;
}

.theme-toggle:hover {
    background-color: var(--button-hover);
    transform: scale(1.05);
}



body.dark-mode .theme-toggle {
    background-color: #f1c40f; 
}

body.dark-mode .theme-toggle:hover {
    background-color: #e6b800; 
}

.contact-section {
    max-width: 900px;
    margin: 50px auto 20px auto;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(136, 136, 136, 0.3);
}

.contact-section h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; 
}

.contact-button {
    padding: 12px 25px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.2s, transform 0.2s;
}

.contact-button i {
    font-size: 1.1em;
}

.contact-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}


.whatsapp-button {
    background-color: #25D366;
}

.email-button {
    background-color: #EA4335; 
}

