/* static/css/components/investment-showcase.css */
/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Investment Showcase Component */
.investment-showcase {
    /* padding: clamp(3rem, 8vw, 6rem) 0; */
    background: var(--bg-primary);
}

/* Main Title */
.investment-showcase__title {
    color: #E3E1EB;
    text-align: center;
    font-family: var(--font-family);
    font-size: clamp(2rem, 6vw, 3rem);
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: clamp(2rem, 6vw, 3rem);
}

/* Category Section Spacing */
.investment-showcase__category-section + .investment-showcase__category-section {
    margin-top: clamp(2rem, 6vw, 2rem);
}

.investment-showcase__category-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1rem, 3vw, 1.5rem);
    align-self: stretch;
}

/* Category Link (Subtitle) */
.investment-showcase__category-link {
    display: flex;
    height: clamp(2rem, 5vw, 2.5rem);
    padding: clamp(0.6rem, 2vw, 0.79rem) clamp(0.8rem, 3vw, 1.06rem);
    justify-content: center;
    align-items: center;
    gap: clamp(0.4rem, 1.5vw, 0.53rem);
    border-radius: clamp(1.5rem, 4vw, 2.65rem);
    border: clamp(0.5px, 0.1vw, 0.847px) solid #040548;
    background: radial-gradient(50.91% 97.54% at 50% 2.46%, #11127C 0%, #040548 100%);
    
    color: #FFF;
    text-align: center;
    font-family: 'Poppins', var(--font-family);
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    font-style: normal;
    font-weight: 700;
    line-height: 1.8;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.investment-showcase__category-link:hover {
    transform: translateY(-2px);
    box-shadow: 0px clamp(4px, 1vw, 8px) clamp(8px, 2vw, 16px) rgba(17, 18, 124, 0.4);
    color: #ffffff;
}

/* Investment Grid */
.investment-showcase__grid {
    display: grid;
    gap: clamp(1rem, 3vw, 1.5rem);
    width: 100%;
    grid-template-columns: 1fr;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .investment-showcase__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .investment-showcase__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Investment Card */
.investment-card {
    display: flex;
    padding: clamp(0.75rem, 2vw, 1rem);
    flex-direction: column;
    align-items: center;
    gap: clamp(0.4rem, 1vw, 0.5rem);
    flex: 1 0 0;
    border-radius: clamp(1.5rem, 4vw, 2rem);
    background: #FFF;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    overflow: hidden;
    border: 2px solid transparent;
}

.investment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px clamp(8px, 2vw, 16px) clamp(16px, 4vw, 32px) rgba(0, 0, 0, 0.15);
    text-decoration: none;
    border-color: rgba(235, 18, 96, 0.2);
}

/* Card Image */
.investment-card__image {
    border-radius: clamp(0.75rem, 2vw, 1rem);
    border: 1px solid #EB1260;
    background: #FFF;
    height: clamp(120px, 20vw, 169px);
    align-self: stretch;
    overflow: hidden;
}

.investment-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Card Content */
.investment-card__content {
    display: flex;
    padding: clamp(0.75rem, 2vw, 1rem);
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.75rem, 2vw, 1rem);
    align-self: stretch;
    border-radius: clamp(0.75rem, 2vw, 1rem);
    border: clamp(0.5px, 0.1vw, 0.847px) solid #EB1260;
    background: rgba(235, 18, 96, 0.15);
}

/* Card Header */
.investment-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
    gap: clamp(0.5rem, 2vw, 1rem);
}

.investment-card__info {
    flex: 1;
}

.investment-card__type {
    color: #040548;
    font-family: var(--font-family);
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    margin: 0 0 clamp(0.25rem, 1vw, 0.375rem) 0;
}

.investment-card__subtitle {
    color: #000;
    font-family: 'Poppins', var(--font-family);
    font-size: clamp(0.625rem, 2vw, 0.75rem);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

.investment-card__price {
    display: flex;
    min-width: clamp(80px, 15vw, 106px);
    height: clamp(32px, 6vw, 40px);
    padding: clamp(0.5rem, 2vw, 0.7rem) clamp(0.7rem, 2.5vw, 0.93rem);
    justify-content: center;
    align-items: center;
    border-radius: clamp(1.5rem, 5vw, 2.46rem);
    border: clamp(0.5px, 0.1vw, 0.787px) solid #040548;
    background: radial-gradient(50.91% 97.54% at 50% 2.46%, #11127C 0%, #040548 100%);
    
    color: #FFF;
    text-align: center;
    font-family: 'Poppins', var(--font-family);
    font-size: clamp(0.625rem, 2vw, 0.79rem);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Card Description */
.investment-card__description {
    color: #040548;
    font-family: 'Poppins', var(--font-family);
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    align-self: stretch;
}

/* Funding Progress */
.investment-card__funding {
    align-self: stretch;
    margin: clamp(0.2rem, 1.5vw, 0.2rem) 0;
}

.investment-card__funding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem);
}

.investment-card__funding-label,
.investment-card__funding-percentage {
    color: #040548;
    font-family: 'Poppins', var(--font-family);
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.investment-card__progress-container {
    padding: clamp(2px, 0.5vw, 3px);
    background: #040548;
    border-radius: clamp(6px, 1.5vw, 8px);
    overflow: hidden;
}

.investment-card__progress-bar {
    display: flex;
    align-items: flex-start;
    align-self: stretch;
    border-radius: clamp(4px, 1vw, 6px);
    background: #040548;
    height: clamp(8px, 2vw, 12px);
    overflow: hidden;
    position: relative;
}

.investment-card__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #EB1260 0%, #FF1E6B 100%);
    transition: width 1.2s ease-out;
    width: 0%;
    border-radius: clamp(4px, 1vw, 6px);
    position: relative;
}

.investment-card__progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 clamp(4px, 1vw, 6px) clamp(4px, 1vw, 6px) 0;
}

/* Features Container */
.investment-card__features-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-self: stretch;
}

.investment-card__feature {
    color: #000;
    font-family: 'Poppins', var(--font-family);
    font-size: clamp(0.625rem, 2vw, 0.75rem);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding: clamp(0.5rem, 1.5vw, 0.75rem) 0;
    display: flex;
    align-items: center;
    min-height: clamp(28px, 6vw, 36px);
}

.investment-card__feature-divider {
    width: 100%;
    height: 1px;
    background: rgba(4, 5, 72, 0.15);
    margin: 0;
}

/* CTA Button */
.investment-showcase__cta-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: clamp(1rem, 3vw, 1.5rem);
}

.investment-showcase__cta {
    display: flex;
    padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1rem, 4vw, 1.5rem);
    justify-content: center;
    align-items: center;
    gap: clamp(0.4rem, 1.5vw, 0.5rem);
    border-radius: clamp(1.5rem, 4vw, 2.65rem);
    border: clamp(0.5px, 0.1vw, 0.847px) solid #EB1260;
    background: radial-gradient(50.91% 97.54% at 50% 2.46%, #7B1B3D 0%, #EB1260 100%);
    
    color: #E3E1EB;
    text-align: center;
    font-family: 'Poppins', var(--font-family);
    font-size: clamp(0.875rem, 3vw, 1rem);
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.investment-showcase__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0px clamp(6px, 2vw, 12px) clamp(12px, 3vw, 24px) rgba(235, 18, 96, 0.4);
    color: #E3E1EB;
}

/* Animation Classes */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Theme Adjustments */
[data-theme="light"] .investment-showcase__title {
    color: var(--text-primary);
}

[data-theme="light"] .investment-showcase__category-link {
    background: radial-gradient(50.91% 97.54% at 50% 2.46%, #4f46e5 0%, #1e1b4b 100%);
    border-color: #1e1b4b;
}

[data-theme="light"] .investment-showcase__cta {
    background: radial-gradient(50.91% 97.54% at 50% 2.46%, #7B1B3D 0%, #EB1260 100%);
}

/* Enhanced hover effects */
.investment-card:hover .investment-card__progress-fill {
    box-shadow: 0 0 8px rgba(235, 18, 96, 0.4);
}

.investment-card:hover .investment-card__price {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(17, 18, 124, 0.3);
}

/* Progress bar glow effect */
.investment-card__progress-fill {
    box-shadow: 0 0 4px rgba(235, 18, 96, 0.2);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .investment-card__header {
        flex-direction: column;
        gap: clamp(0.5rem, 2vw, 0.75rem);
        align-items: flex-start;
    }
    
    .investment-card__price {
        align-self: flex-start;
    }
}

@media (min-width: 1024px) {
    .investment-card:hover {
        transform: translateY(-6px);
    }
}