/* =====================================================
   sharecode-detail.css — ShareCode Detail page
   ===================================================== */

/* ─── Breadcrumb hero ────────────────────────────── */
.sc-detail-hero {
    background: linear-gradient(135deg, #0a1c10 0%, #1c3d22 100%);
    padding: 20px 0;
    border-bottom: 1px solid rgba(47, 179, 98, 0.2);
}

.sc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.sc-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.sc-breadcrumb a:hover {
    color: #2fb362;
}

.sc-breadcrumb i.bx-chevron-right {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
}

.sc-breadcrumb span {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ─── Detail section ─────────────────────────────── */
.sc-detail-section {
    background-image: linear-gradient(rgba(10, 28, 16, 0.75), rgba(10, 28, 16, 0.75)),
        url("/Webmain/assets/img/cta-bg.jpg");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    padding: 50px 0 70px;
    min-height: 70vh;
}

/* ─── Detail card ────────────────────────────────── */
.sc-detail-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 30px -4px rgba(20, 45, 100, 0.2);
    overflow: hidden;
    border-top: 4px solid var(--primary-200-color, #2fb362);
}

/* ─── Gallery ────────────────────────────────────── */
.sc-gallery {
    padding: 24px;
    background: #f8fafb;
    height: 100%;
    border-right: 1px solid #eee;
}

.sc-gallery-main {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #e8f5e9;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sc-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1c6d3a, #2fb362);
}

.sc-gallery-placeholder i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Thumbs */
.sc-gallery-thumbs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sc-thumb-track {
    flex: 1;
    overflow: hidden;
}

.sc-thumb-inner {
    display: flex;
    gap: 8px;
    transition: transform 0.3s ease;
}

.sc-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.sc-thumb:hover,
.sc-thumb.active {
    border-color: var(--primary-200-color, #2fb362);
}

.sc-thumb-nav {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: #555;
    flex-shrink: 0;
    transition: all 0.2s;
}

.sc-thumb-nav:hover {
    background: var(--primary-200-color, #2fb362);
    border-color: var(--primary-200-color, #2fb362);
    color: #fff;
}

/* ─── Info panel ─────────────────────────────────── */
.sc-detail-info {
    padding: 32px 36px;
}

/* Badges */
.sc-detail-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.badge-type {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #e3f2fd;
    color: #1565c0;
    letter-spacing: 0.5px;
}

.badge-group {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #fff3e0;
    color: #e65100;
    letter-spacing: 0.5px;
}

/* Title */
.sc-detail-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 14px;
    line-height: 1.35;
}

/* Language tags */
.sc-detail-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.sc-lang-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #e8f5e9;
    color: var(--primary-600-color, #1c6d3a);
    border: 1px solid rgba(47, 179, 98, 0.3);
}

/* Stats */
.sc-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.83rem;
    color: #888;
    margin-bottom: 16px;
}

.sc-detail-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sc-detail-stats .s-view i  { color: #3aa0e8; }
.sc-detail-stats .s-like i  { color: #ff7575; }
.sc-detail-stats .s-dl i    { color: #38d629; }
.sc-detail-stats .s-star i  { color: #f5a623; }

/* Divider */
.sc-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 16px 0;
}

/* Price */
.sc-price-block {
    margin-bottom: 20px;
}

.sc-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.sc-price-old {
    font-size: 0.95rem;
    color: #aaa;
    text-decoration: line-through;
    font-family: "Jost", sans-serif;
}

.sc-price-discount-badge {
    background: #ffebee;
    color: #c62828;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.sc-price-main {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-600-color, #1c6d3a);
    font-family: "Jost", sans-serif;
    line-height: 1;
}

.sc-price-main small {
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
}

.sc-price-free {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-200-color, #2fb362);
    font-family: "Jost", sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-price-free i {
    font-size: 1.8rem;
}

/* Actions */
.sc-detail-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sc-btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 13px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #2fb362, #1c6d3a);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: "Jost", sans-serif;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 4px 16px rgba(47, 179, 98, 0.35);
}

.sc-btn-buy:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #fff;
}

.sc-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 13px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #2fb362, #1c6d3a);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: "Jost", sans-serif;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 4px 16px rgba(47, 179, 98, 0.35);
}

.sc-btn-download:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #fff;
}

.sc-btn-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #ffc5c5;
    color: #ff7575;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sc-btn-like:hover {
    background: #ff7575;
    border-color: #ff7575;
    color: #fff;
}

.sc-btn-like.liked {
    background: #ff7575;
    border-color: #ff7575;
    color: #fff;
}

/* Feature list */
.sc-detail-features {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #666;
}

.sc-detail-features li {
    padding: 7px 0 7px 28px;
    position: relative;
    font-size: 0.88rem;
}

.sc-detail-features i {
    color: #2fb362;
    font-size: 1.1rem;
    position: absolute;
    left: 0;
    top: 8px;
}

/* ─── Checkout page ──────────────────────────────── */
.sc-checkout-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 30px -4px rgba(20, 45, 100, 0.2);
    border-top: 4px solid var(--primary-200-color, #2fb362);
    padding: 36px 40px 28px;
    margin-top: 20px;
}

.sc-checkout-header {
    text-align: center;
    margin-bottom: 24px;
}

.sc-checkout-header i {
    font-size: 2.5rem;
    color: var(--primary-200-color, #2fb362);
    display: block;
    margin-bottom: 8px;
}

.sc-checkout-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

/* Product row */
.sc-checkout-product {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.sc-checkout-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sc-checkout-thumb-placeholder {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    background: linear-gradient(135deg, #1c6d3a, #2fb362);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sc-checkout-thumb-placeholder i {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.5);
}

.sc-checkout-product-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    line-height: 1.4;
}

.sc-checkout-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Feature list */
.sc-checkout-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    color: #666;
}

.sc-checkout-features li {
    padding: 6px 0 6px 26px;
    position: relative;
    font-size: 0.85rem;
}

.sc-checkout-features i {
    color: #2fb362;
    font-size: 1rem;
    position: absolute;
    left: 0;
    top: 7px;
}

/* Total row */
.sc-checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0fff6;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.sc-checkout-total-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-600-color, #1c6d3a);
    font-family: "Jost", sans-serif;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.sc-checkout-original {
    font-size: 0.9rem;
    font-weight: 400;
    color: #aaa;
    text-decoration: line-through;
}

/* Saving badge */
.sc-checkout-saving {
    background: #fff3e0;
    border-left: 4px solid #f5a623;
    padding: 8px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 0.83rem;
    color: #e65100;
    margin-bottom: 4px;
}

/* Confirm button */
.sc-checkout-confirm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #2fb362, #1c6d3a);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: "Jost", sans-serif;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 4px 16px rgba(47, 179, 98, 0.35);
}

.sc-checkout-confirm-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* Back link */
.sc-checkout-back-link {
    color: #aaa;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.sc-checkout-back-link:hover {
    color: var(--primary-200-color, #2fb362);
}

/* Secure badge */
.sc-checkout-secure {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-size: 0.78rem;
    color: #bbb;
    margin-top: 14px;
}

.sc-checkout-secure i {
    font-size: 1rem;
}

/* ─── MyDownloads card ───────────────────────────── */
.sc-dl-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 20px -2px rgba(20, 45, 100, 0.12);
    border-top: 4px solid var(--primary-200-color, #2fb362);
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sc-dl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px -4px rgba(20, 45, 100, 0.18);
}

.sc-dl-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sc-dl-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1c6d3a, #2fb362);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sc-dl-icon i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.sc-dl-info {
    flex: 1;
    min-width: 0;
}

.sc-dl-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.sc-dl-date {
    font-size: 0.76rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sc-dl-date i { font-size: 0.82rem; }

.sc-dl-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.sc-dl-price-paid {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-600-color, #1c6d3a);
    font-family: "Jost", sans-serif;
}

.sc-dl-price-original {
    font-size: 0.82rem;
    color: #bbb;
    text-decoration: line-through;
}

.sc-dl-price-free {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-200-color, #2fb362);
    display: flex;
    align-items: center;
    gap: 5px;
}

.sc-dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, #2fb362, #1c6d3a);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: "Jost", sans-serif;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(47, 179, 98, 0.3);
    margin-top: auto;
}

.sc-dl-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #fff;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 991px) {
    .sc-gallery {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .sc-detail-info {
        padding: 24px 20px;
    }

    .sc-detail-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .sc-detail-actions {
        flex-direction: column;
    }

    .sc-btn-buy,
    .sc-btn-download {
        justify-content: center;
    }

    .sc-btn-like {
        align-self: flex-start;
    }
}
