/**
 * Beautiful Hero Logo CSS - App Icon Style with Glass Effect
 * สวยงามแบบแอพไอคอนมีเงาใสๆ ด้านบน
 */

/* Hero Logo - Beautiful App Icon Style with Glass Effect */
.hero-logo {
    width: 140px !important;
    height: 140px !important;
    flex-shrink: 0;
    position: relative !important;
    padding: 3px; /* เพิ่ม padding เพื่อให้มีขอบบาง */
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(0, 0, 0, 0.05) 100%
    ) !important;
    border-radius: 32px !important; /* ขอบมนด้านนอก */
    backdrop-filter: blur(10px); /* Glass effect */
    box-sizing: border-box;
}

.hero-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 32px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 30%, 
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

.hero-logo img {
    width: calc(100% - 6px) !important; /* ลบ padding ออก */
    height: calc(100% - 6px) !important; /* ลบ padding ออก */
    object-fit: cover !important;
    border-radius: 29px !important; /* ขอบมนของภาพภายใน */
    position: relative !important;
    z-index: 0;
    box-shadow: 
        /* เงาหลักด้านนอก */
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.08),
        /* เงาใสด้านบน (highlight) */
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 1px 4px rgba(255, 255, 255, 0.3),
        /* เงาใสด้านล่าง (depth) */
        inset 0 -1px 2px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    filter: brightness(1.02) contrast(1.05);
    background: none !important; /* ลบ background gradient เดิม */
}

.hero-logo:hover {
    transform: translateY(-2px) scale(1.02) !important;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(0, 0, 0, 0.03) 100%
    ) !important;
}

.hero-logo:hover::before {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.6) 0%, 
        rgba(255, 255, 255, 0.2) 25%, 
        transparent 60%
    );
}

.hero-logo:hover img {
    box-shadow: 
        /* เงาใหญ่ขึ้นเมื่อ hover */
        0 16px 50px rgba(0, 0, 0, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        /* เงาใสแสงมากขึ้น */
        inset 0 3px 0 rgba(255, 255, 255, 0.6),
        inset 0 1px 6px rgba(255, 255, 255, 0.4),
        inset 0 -1px 3px rgba(0, 0, 0, 0.08) !important;
    filter: brightness(1.05) contrast(1.08) !important;
    transform: none !important; /* ไม่ให้ img scale แยก */
}

.hero-logo:active {
    transform: translateY(0) scale(0.98) !important;
    transition: all 0.1s ease !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-logo {
        width: 120px !important;
        height: 120px !important;
        border-radius: 28px !important;
    }
    
    .hero-logo::before {
        border-radius: 28px;
    }
    
    .hero-logo img {
        border-radius: 25px !important; /* ปรับขอบมนให้เหมาะกับขนาดเล็ก */
        box-shadow: 
            0 8px 30px rgba(0, 0, 0, 0.12),
            0 4px 15px rgba(0, 0, 0, 0.08),
            0 2px 6px rgba(0, 0, 0, 0.06),
            inset 0 2px 0 rgba(255, 255, 255, 0.4),
            inset 0 1px 3px rgba(255, 255, 255, 0.25),
            inset 0 -1px 2px rgba(0, 0, 0, 0.08) !important;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 100px !important;
        height: 100px !important;
        border-radius: 24px !important;
    }
    
    .hero-logo::before {
        border-radius: 24px;
    }
    
    .hero-logo img {
        border-radius: 21px !important;
    }
}