/* -------------------------------------------------
   MAIN.CSS — Y-CONNECT PLATFORM STYLES
   Consolidated from all pages (Global, SME, Success, Investor)
   Author: Y-Connect
   Version: 1.0
---------------------------------------------------*/

/* -------------------------------------------------
   GLOBAL BASE STYLES
---------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --success: #10b981;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

body {
    background-color: #f1f5f9;
    color: var(--secondary);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* -------------------------------------------------
   HEADER + NAVIGATION
---------------------------------------------------*/
header {
    background-color: white;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* -------------------------------------------------
   BUTTONS
---------------------------------------------------*/
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--secondary);
}

.btn-light:hover {
    background-color: var(--light-gray);
}

/* -------------------------------------------------
   BREADCRUMB
---------------------------------------------------*/
.breadcrumb {
    padding: 1.5rem 0;
    background-color: white;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------
   SME HEADER + DETAILS PAGE
---------------------------------------------------*/
.sme-header {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    padding: 3rem 0;
    border-radius: 16px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.sme-header-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.sme-logo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.sme-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sme-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.sme-tagline {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.sme-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
}

.meta-item i {
    color: var(--primary);
}

.sme-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Funding Section */
.funding-section {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.funding-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.funding-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.funding-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.progress-bar {
    height: 10px;
    background-color: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--gray);
}

.funding-actions {
    display: flex;
    gap: 1rem;
}

/* Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-card {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.content-card h2 {
    margin-bottom: 1rem;
}

.content-card p {
    color: var(--gray);
    margin-bottom: 1rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.member-name {
    font-weight: 600;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background-color: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray);
}

/* -------------------------------------------------
   SUCCESS STORIES PAGE
---------------------------------------------------*/
.success-hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.success-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.success-hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.success-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.filter-section {
    background-color: white;
    padding: 2rem 0;
    margin: -2rem 0 3rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    background-color: var(--light);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
    background-color: var(--primary);
    color: white;
}

/* Story Cards */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.story-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Featured Story */
.featured-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Testimonials */
.testimonial-card {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary), #1e293b);
    color: white;
    padding: 4rem 0;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 4rem;
}

/* -------------------------------------------------
   FOOTER
---------------------------------------------------*/
footer {
    background-color: var(--secondary);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* -------------------------------------------------
   RESPONSIVE
---------------------------------------------------*/
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        justify-content: center;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .funding-details {
        grid-template-columns: 1fr;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}