﻿/* สร้าง Class สำหรับการ์ดโปร่งแสง */
.glass-info-card-footer-md {
    
    position: relative !important;
    width: calc(100%) !important;
    left: 0px !important;
    bottom: 10px !important;
    /* ความใส ตัวสุดท้าย ปรับยิ่งน้อย ยิ่งใส */
    background-color: rgba(0, 0, 4, 0.5) !important;
    /* ปรับความเบลอเป็น ยิ่งมากยิ่งเบลอ */
    backdrop-filter: blur(9px) !important;
    /* ปรับความเบลอเป็น ยิ่งมากยิ่งเบลอ */
    -webkit-backdrop-filter: blur(9px) !important;
    color: white !important;
    border: 1px solid rgba(121 114 114 / 33%);
    /* เพิ่มขอบจางๆ ให้ดูมีมิติ */
    
}

.item-card-nft  {
    text-decoration: none !important;
}

/* แถม: บังคับให้ตัวหนังสือข้างในเป็นสีขาวทั้งหมด */
.glass-info-card h4,
.glass-info-card h5,
.glass-info-card h6,
.glass-info-card p,
.glass-info-card span {
    color: white !important;
}


.glass-info-card-footer-sm {
    position: relative !important;
    /* ความใส ตัวสุดท้าย ปรับยิ่งน้อย ยิ่งใส */
    background-color: rgba(0, 0, 0, 0.5) !important;
    /* ปรับความเบลอเป็น ยิ่งมากยิ่งเบลอ */
    backdrop-filter: blur(9px) !important;
    /* ปรับความเบลอเป็น ยิ่งมากยิ่งเบลอ */
    -webkit-backdrop-filter: blur(9px) !important;
    padding: 10px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(121 114 114 / 33%);

    /* --- จุดสำคัญที่ต้องแก้เพื่อให้อยู่ตรงกลาง --- */
    /* position: absolute !important; */
    bottom: 10px !important;
    /* เว้นระยะจากขอบล่าง 10px */
    left: 50% !important;
    /* ย้ายจุดเริ่มไปไว้ตรงกลาง */
    transform: translateX(-50%) !important;
    /* ดันกลับมาครึ่งหนึ่งของตัวเองเพื่อให้กลางเป๊ะ */

    /* width: calc(100% - 5px) !important; */
    /* กำหนดความกว้างให้เหลือขอบข้างละ 10px */

    /* ลบ margin เดิมออกเพื่อไม่ให้มันไปบวกซ้ำจนเบี้ยว */
    margin: 0 !important;

    color: white !important;
    display: flex;
    flex-direction: column;
    z-index: 10;
}


/* ============================================
   Favorites Page — Folder List
============================================ */
.folder-list-item .nav-link {
    padding-right: 50px !important;
}

.folder-menu-btn:focus {
    outline: none;
    box-shadow: none;
}

.folder-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 50%;
}

.folder-dropdown {
    min-width: 180px;
}

.dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
}

.dropdown-item i {
    margin-right: 8px;
}


/* ============================================
   Favorites Page — Masonry Grid (Pinterest-style)
============================================ */
.masonry-grid {
    column-count: 2;
    column-gap: 8px;
    padding: 0 8px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 8px;
    position: relative;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.pin-card {
    display: block;
    background: #1d1b2e;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: inherit;
}

.pin-image {
    width: 100%;
    overflow: hidden;
    background: #2a2740;
}

.pin-image img {
    width: 100%;
    height: auto;
    display: block;
}

.pin-info {
    padding: 10px 12px;
}

.pin-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pin-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.pin-funded strong {
    font-size: 13px;
    color: #ffffff;
}

.pin-percent {
    color: #4ade80;
    margin-left: 4px;
}

.pin-likes {
    color: #cfced8;
    display: flex;
    align-items: center;
    gap: 3px;
}

.pin-likes i {
    color: #ff6b81;
    font-size: 14px;
}

.pin-creator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pin-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.pin-creator small {
    color: #cfced8;
    font-size: 11px;
}

/* Pin Menu (⋮ Overlay) */
.pin-menu-wrapper {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

.pin-menu-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.masonry-item:hover .pin-menu-btn,
.pin-menu-btn[aria-expanded="true"] {
    opacity: 1;
}

.pin-menu-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

/* Mobile: ปุ่มแสดงตลอด */
@media (max-width: 768px) {
    .pin-menu-btn {
        opacity: 1;
    }
}

/* Responsive columns */
@media (min-width: 768px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (min-width: 1200px) {
    .masonry-grid {
        column-count: 4;
    }
}


/* ============================================
   Project Detail Page
============================================ */
.project-detail-page {
    background: #0f0d1a;
    color: #fff;
    min-height: 100vh;
}

.project-hero {
    position: relative;
    width: 100%;
    background: #2a2740;
}

.project-hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.project-hero-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.badge-status,
.badge-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    width: fit-content;
}

.badge-type {
    background: rgba(0,0,0,0.6);
}

.project-hero-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-action-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.hero-action-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.project-section {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.project-section:last-of-type {
    border-bottom: none;
}

.section-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.project-title {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.project-subtitle {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #cfced8;
    line-height: 1.5;
}

.project-funding {
    margin-top: 16px;
}

.funding-amount {
    margin-bottom: 8px;
}

.funded-current {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.funded-goal {
    font-size: 14px;
    color: #999;
    margin-left: 4px;
}

.progress-bar-wrapper {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.4s;
}

.funding-stats {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
}

.project-creator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.creator-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}

.creator-info {
    flex: 1;
}

.creator-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-unverified {
    font-size: 10px;
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.badge-unverified i {
    font-size: 11px;
    vertical-align: middle;
}

.creator-meta {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.project-description,
.project-risks,
.project-delivery {
    font-size: 14px;
    line-height: 1.6;
    color: #cfced8;
}

.project-risks {
    background: rgba(245, 158, 11, 0.08);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
}

.project-delivery {
    background: rgba(108, 99, 255, 0.08);
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
}

.project-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f0d1a;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
}

.btn-support {
    width: 100%;
    padding: 14px;
    background: #6c63ff;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-support:hover:not(:disabled) {
    background: #5b54e6;
}

.btn-support:disabled {
    background: rgba(255,255,255,0.1);
    color: #999;
    cursor: not-allowed;
}

.btn-support-funded {
    background: #4ade80 !important;
    color: white !important;
}


/* ============================================
   FAQ Accordion (Project Detail)
============================================ */
.faq-accordion {
    background: transparent;
}

.faq-item {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px !important;
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-question {
    background: rgba(0, 0, 0, 0.02) !important;
    color: inherit !important;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 16px;
    box-shadow: none !important;
    border: none;
    line-height: 1.4;
}

.faq-question:not(.collapsed) {
    background: rgba(108, 99, 255, 0.08) !important;
    color: #6c63ff !important;
}

.faq-question:focus {
    box-shadow: none !important;
    border-color: transparent !important;
}

.faq-answer {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    background: rgba(0, 0, 0, 0.01);
}

/* Bootstrap arrow icon override */
.faq-question::after {
    background-size: 16px;
    transition: transform 0.2s;
}



/* Content Block Editor */
.content-block-item {
    background: rgba(0, 0, 0, 0.02);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}