/* 
   Women Details Page - Enhanced Styling
   Features: Hero section, tabbed layout, information cards, timeline
*/

/* Hero Section */
.details-hero {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    margin-bottom: 40px;
}

.details-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.details-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
}

.details-hero-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.details-hero-info {
    flex: 1;
    padding-left: 50px;
}

.details-hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.details-hero-years {
    font-size: 1.5rem;
    opacity: 0.95;
    margin-bottom: 15px;
}

.details-hero-field {
    font-size: 1.2rem;
    opacity: 0.9;
}

.field-tags-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.field-tag-hero {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: white;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-nav a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #764ba2;
}

.breadcrumb-nav .bi {
    margin: 0 8px;
    color: #999;
}

/* Tabbed Navigation */
.details-tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
    display: flex;
    gap: 5px;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Information Cards */
.info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.info-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.info-card-icon.purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.info-card-icon.blue { background: linear-gradient(135deg, #4285F4 0%, #2563EB 100%); }
.info-card-icon.green { background: linear-gradient(135deg, #34A853 0%, #16a085 100%); }
.info-card-icon.orange { background: linear-gradient(135deg, #FF6D00 0%, #F57C00 100%); }
.info-card-icon.red { background: linear-gradient(135deg, #EA4335 0%, #DC143C 100%); }

.info-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.info-card-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.info-card-body p {
    margin-bottom: 15px;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: 37px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 4px solid #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.timeline-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.timeline-text {
    color: #555;
    line-height: 1.6;
}

/* Cool Facts Grid */
.cool-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cool-fact-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-left: 4px solid #FBBC05;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.cool-fact-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.cool-fact-card i {
    color: #FBBC05;
    font-size: 1.2rem;
    margin-right: 10px;
}

.cool-fact-card p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Related Innovations Carousel */
.related-section {
    margin-top: 50px;
    padding: 40px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
}

.related-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 30px;
}

.related-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    text-decoration: none;
}

.related-card-body {
    padding: 20px;
}

.related-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.related-card-category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.related-card-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Action Buttons */
.action-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    border: none;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.action-btn:hover {
    transform: scale(1.1);
    background: #764ba2;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .details-hero {
        height: auto;
        padding: 40px 20px;
    }
    
    .details-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .details-hero-image {
        width: 180px;
        height: 180px;
    }
    
    .details-hero-info {
        padding-left: 0;
        padding-top: 20px;
    }
    
    .details-hero-name {
        font-size: 2.5rem;
    }
    
    .details-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-button {
        padding: 12px 20px;
        font-size: 1rem;
        white-space: nowrap;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-marker {
        left: 7px;
    }
    
    .cool-facts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        right: 15px;
        bottom: 15px;
    }
}
