/*
Theme Name: LearnGoEgy Courses
Theme URI: http://learngoegy.com
Author: LearnGoEgy
Author URI: http://learngoegy.com
Description: WordPress theme converted from Blogger XML, optimized for courses and educational content.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: learngoegy
Tags: dark, course, education, right-to-left, translation-ready
*/

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Montserrat:wght@400;500;600;700&display=swap');

/* Variables */
:root {
    --primary-color: #02a4ec;
    --bg-color: #191a23;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #343434;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    color: var(--text-color);
    font-family: 'Almarai', sans-serif;
    font-size: 15px;
    font-weight: normal;
    line-height: 1.6;
    background: var(--bg-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Righteous', 'Almarai', cursive;
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
    font-weight: bold;
}

/* Header */
.site-header {
    background: #22232f;
    border-bottom: 2px solid var(--border-color);
    padding: 15px 0;
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding .site-title {
    font-size: 32px;
    margin: 0;
    text-transform: uppercase;
}

.site-branding .site-title a {
    color: #fff;
}

.site-branding .site-title a span {
    color: var(--primary-color);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation ul li {
    margin-left: 20px;
}

.main-navigation ul li a {
    color: #fff;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: bold;
}

.main-navigation ul li a:hover {
    color: var(--primary-color);
}

/* Course Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.course-card {
    background: #252736;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 20px;
}

.course-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.course-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.course-btn {
    display: block;
    text-align: center;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: bold;
}

.course-btn:hover {
    background: #028ac7;
    color: #fff;
}

/* Single Post Specific Styles (Movies/Episodes) */
.singlr-post {
    position: relative;
    padding: 40px 0;
    min-height: 480px;
    background-color: #111218;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 20px;
}

.singlr-post figure.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    margin: 0;
    opacity: 0.3;
    z-index: 1;
    filter: blur(5px);
}

.single-post-info {
    position: relative;
    z-index: 2;
}

.slide-box {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.slide-box-poster {
    position: relative;
    width: 250px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.slide-box-poster img {
    width: 100%;
    display: block;
}

.slide-box-poster span {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 3px;
    font-weight: bold;
}

.slide-box-poster span.last {
    top: auto;
    bottom: 10px;
    left: 10px;
    right: auto;
    background: rgba(0,0,0,0.7);
}

.slide-info {
    flex: 1;
    min-width: 300px;
}

.slide-imdb {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.slide-imdb-text {
    background: #f5c518;
    color: #000;
    padding: 2px 8px;
    font-weight: bold;
    border-radius: 3px;
    font-family: 'Righteous', sans-serif;
}

.slide-imdb-rate em {
    font-style: normal;
    font-weight: bold;
    font-size: 18px;
    margin-left: 5px;
}

.slide-imdb-rate i {
    color: #f5c518;
}

.slide-title {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-text {
    font-size: 16px;
    line-height: 1.8;
    color: #dddddd;
    margin-bottom: 25px;
}

.slide-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.slide-footer-link {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
}

.slide-footer span {
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.actors-post {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    width: 100%;
}

.actors-post img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.actors-post img:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.single-episodes-link:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

.server-download-link:hover {
    border-color: var(--primary-color) !important;
}

/* Footer */
.site-footer {
    background: #111218;
    padding: 40px 0 20px;
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-social {
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #252736;
    color: #fff;
    border-radius: 50%;
    margin: 0 5px;
}

.footer-social a:hover {
    background: var(--primary-color);
}

.site-info {
    font-size: 14px;
    color: var(--text-muted);
}

/* Responsiveness */
@media (max-width: 768px) {
    .slide-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .slide-imdb {
        justify-content: center;
    }
    
    .slide-footer {
        justify-content: center;
    }
    
    .actors-post {
        justify-content: center;
    }
}
