/* ========================================
   Wenliang Zhang - Bio Page Stylesheet
   ======================================== */

/* Color Palette (matching AIDD homepage) */
:root {
    --bio-primary: #4A6FA5;
    --bio-secondary: #3DD9A0;
    --bio-dark: #1E2A4A;
    --bio-light: #F8F9FA;
    --bio-text: #2C3E50;
    --bio-text-light: #5A6C7D;
    --bio-border: #E1E8ED;
    --bio-hover: #6B8FC7;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--bio-text);
    line-height: 1.6;
}

/* Container */
.bio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Titles */
.bio-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bio-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.bio-section-subtitle {
    font-size: 1.1rem;
    color: var(--bio-text-light);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Hero Section
   ======================================== */
.bio-hero {
    background: linear-gradient(135deg, var(--bio-dark) 0%, var(--bio-primary) 100%);
    padding: 6rem 0;
    color: white;
}

.bio-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bio-hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.bio-hero-photo {
    flex-shrink: 0;
}

.bio-hero-photo img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.bio-photo-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.3);
    border: 6px solid rgba(255, 255, 255, 0.2);
}

.bio-hero-text {
    flex: 1;
}

.bio-hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.bio-hero-role {
    font-size: 1.5rem;
    color: var(--bio-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.bio-hero-bio {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.bio-hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.bio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.bio-btn-primary {
    background: var(--bio-secondary);
    color: var(--bio-dark);
}

.bio-btn-primary:hover {
    background: #2ec890;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 217, 160, 0.4);
    color: var(--bio-dark);
}

.bio-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.bio-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-2px);
    color: white;
}

/* ========================================
   About Section
   ======================================== */
.bio-about {
    padding: 5rem 0;
    background: white;
}

.bio-about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.bio-about-content {
    padding-right: 2rem;
}

.bio-about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--bio-text);
    white-space: pre-line;
}

.bio-about-sidebar {
    position: relative;
}

.bio-fact-card {
    background: var(--bio-light);
    border: 2px solid var(--bio-border);
    border-radius: 12px;
    padding: 2rem;
    position: sticky;
    top: 2rem;
}

.bio-fact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bio-dark);
    margin-bottom: 1.5rem;
}

.bio-facts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bio-fact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.bio-fact-item i {
    font-size: 1.5rem;
    color: var(--bio-primary);
    margin-top: 0.25rem;
}

.bio-fact-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bio-fact-item strong {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bio-text-light);
    font-weight: 600;
}

.bio-fact-item span {
    font-size: 1.1rem;
    color: var(--bio-text);
    font-weight: 500;
}

/* ========================================
   Projects Section
   ======================================== */
.bio-projects {
    padding: 5rem 0;
    background: white;
}

/* Modern Product Cards - Same as Homepage */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    min-height: 500px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
    background: white;
    padding: 15px;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 250px);
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-type {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.product-details {
    margin-bottom: 20px;
    flex-grow: 1;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.detail-icon {
    width: 16px;
    margin-right: 10px;
    color: #17a2b8;
}

.product-manager {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.manager-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #17a2b8;
    margin-right: 10px;
}

.manager-name {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.modern-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white !important;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 700 !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    text-decoration: none !important;
    display: block;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.modern-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.modern-cta:hover::before {
    left: 100%;
}

.modern-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
    color: white !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Star Rating Styles - consistent with listings page */
.rating-stars, .no-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.star.filled {
    color: #ffc107;
    font-size: 16px;
}

.star.half-filled {
    background: linear-gradient(90deg, #ffc107 50%, #e4e5e9 50%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 16px;
}

.star.empty {
    color: #e4e5e9;
    font-size: 16px;
}

.rating-text {
    margin-left: 8px;
    color: #6c757d;
    font-size: 0.9rem;
}

/* ========================================
   Contact Section
   ======================================== */
.bio-contact {
    padding: 5rem 0;
    background: var(--bio-light);
}

.bio-contact-card {
    background: white;
    border: 2px solid var(--bio-border);
    border-radius: 16px;
    padding: 3rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bio-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.bio-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.bio-contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bio-primary) 0%, var(--bio-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.bio-contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.bio-contact-info strong {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bio-text-light);
    font-weight: 600;
}

.bio-contact-info a {
    font-size: 1.2rem;
    color: var(--bio-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.bio-contact-info a:hover {
    color: var(--bio-hover);
}

.bio-social-links {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid var(--bio-border);
}

.bio-social-links h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bio-dark);
    margin-bottom: 1.5rem;
}

.bio-social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.bio-social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.bio-social-linkedin {
    background: #0077B5;
}

.bio-social-linkedin:hover {
    background: #005582;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
}

.bio-social-email {
    background: var(--bio-primary);
}

.bio-social-email:hover {
    background: var(--bio-hover);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(74, 111, 165, 0.4);
}

/* ========================================
   Show More Button & Hidden State
   ======================================== */

/* Hidden class for pagination */
.product-card.hidden {
    display: none;
}

/* Show More Projects Button */
.show-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.show-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.show-more-btn:hover::before {
    left: 100%;
}

.show-more-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.show-more-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.show-more-btn i {
    transition: transform 0.3s ease;
}

.show-more-btn:hover i {
    transform: rotate(90deg);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .bio-hero-content {
        gap: 3rem;
    }

    .bio-hero-photo img,
    .bio-photo-placeholder {
        width: 250px;
        height: 250px;
    }

    .bio-hero-name {
        font-size: 2.8rem;
    }

    .bio-about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bio-about-content {
        padding-right: 0;
    }

    .bio-fact-card {
        position: static;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .bio-container {
        padding: 0 1.5rem;
    }

    .bio-hero {
        padding: 4rem 0;
    }

    .bio-hero-container {
        padding: 0 1.5rem;
    }

    .bio-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .bio-hero-photo img,
    .bio-photo-placeholder {
        width: 200px;
        height: 200px;
    }

    .bio-hero-name {
        font-size: 2.2rem;
    }

    .bio-hero-role {
        font-size: 1.2rem;
    }

    .bio-hero-bio {
        font-size: 1rem;
    }

    .bio-hero-ctas {
        justify-content: center;
    }

    .bio-section-title {
        font-size: 2rem;
    }

    .bio-section-subtitle {
        font-size: 1rem;
    }

    .bio-about,
    .bio-projects,
    .bio-contact {
        padding: 3rem 0;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image-container {
        height: 220px;
    }

    .bio-contact-card {
        padding: 2rem 1.5rem;
    }

    .bio-contact-item {
        gap: 1rem;
    }

    .bio-contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .bio-social-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Tablet/Small Desktop (576px - 992px) */
@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
    .product-content {
        padding: 20px;
    }

    .modern-cta {
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
        margin-top: 15px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .show-more-btn {
        padding: 14px 28px;
        font-size: 1rem;
        width: calc(100% - 40px);
        max-width: 300px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .bio-hero-name {
        font-size: 1.8rem;
    }

    .bio-hero-role {
        font-size: 1rem;
    }

    .bio-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .bio-section-title {
        font-size: 1.75rem;
    }

    .bio-fact-card {
        padding: 1.5rem;
    }

    .grid-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin-bottom: 30px !important;
    }

    .product-card {
        min-height: 450px !important;
        margin: 0 10px !important;
    }

    .product-content {
        padding: 15px !important;
    }

    .modern-cta {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        margin-top: 10px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .modern-cta i {
        margin-right: 6px !important;
    }

    .show-more-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        width: calc(100% - 40px);
        max-width: 280px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .show-more-btn i {
        margin-right: 6px !important;
    }
}
