﻿/* ==============================================================
   GAME DEV COURSE CARD THEME (Unique Prefix: gdev-)
   ============================================================== */

/* Section background override */
.gdev-section-dark-matrix {
    background-color: #0f1115;
    background-image: radial-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 0);
    background-size: 24px 24px; /* بک گراند مشبک شبیه ادیتور بازی */
    padding: 60px 0;
}

.gdev-quest-title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
}

.gdev-text-glow {
    color: #ffaa00; /* Unity Brand Orange/Gold */
    text-shadow: 0 0 12px rgba(255, 170, 0, 0.4);
}

.gdev-quest-divider {
    height: 4px;
    width: 100px;
    background: linear-gradient(90deg, #ffaa00, transparent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Course Card Main Container */
.gdev-course-card {
    background: #151921;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .gdev-course-card:hover {
        transform: translateY(-6px);
        border-color: rgba(255, 170, 0, 0.3);
        box-shadow: 0 12px 24px rgba(255, 170, 0, 0.1);
    }

/* Card Thumbnail */
.gdev-course-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #090b0e;
}

.gdev-course-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gdev-course-card:hover .gdev-course-img {
    transform: scale(1.06);
}

.gdev-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(21, 25, 33, 0.9));
}

/* HUD Badges & Prices */
.gdev-badge-price-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 3;
}

.gdev-price-standard, .gdev-price-active {
    background: #00ff88;
    color: #052e16;
    padding: 5px 14px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 255, 136, 0.3);
    display: inline-block;
}

.gdev-price-discount-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.gdev-price-old {
    color: #a0aec0;
    font-size: 11px;
    margin-right: 4px;
    background: rgba(0,0,0,0.5);
    padding: 1px 6px;
    border-radius: 4px;
}

.gdev-status-badge {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.gdev-status-recording {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.gdev-status-waiting {
    background: rgba(160, 174, 192, 0.15);
    color: #cbd5e0;
    border: 1px solid rgba(160, 174, 192, 0.3);
}

/* Pulse animation for Recording status */
.gdev-pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #ff4444;
    border-radius: 50%;
    display: inline-block;
    animation: gdev-blink 1.2s infinite alternate;
}

@keyframes gdev-blink {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 8px #ff4444;
    }
}

/* Course Content */
.gdev-course-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gdev-course-title {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-weight: 700;
    min-height: 50px; /* هم تراز شدن تایتل ها */
}

    .gdev-course-title a {
        color: #ffffff;
        text-decoration: none;
        transition: color 0.2s ease;
    }

.gdev-course-card:hover .gdev-course-title a {
    color: #ffaa00;
}

/* Teachers Section inside Card */
.gdev-course-teachers {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.gdev-teacher-node {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.gdev-teacher-avatar-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ffaa00;
    overflow: hidden;
    background: #0f1115;
}

    .gdev-teacher-avatar-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.gdev-teacher-name {
    color: #a0aec0;
    font-size: 13px;
    transition: color 0.2s;
}

.gdev-teacher-node:hover .gdev-teacher-name {
    color: #ffffff;
}

/* Footer Meta Specifications */
.gdev-course-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
}

.gdev-footer-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #718096;
    font-size: 12px;
}

.gdev-meta-icon-time {
    color: #00f3ff;
}
/* Cyan for time */
.gdev-meta-icon-comment {
    color: #9d00ff;
}
/* Purple for interactions */
