/* Custom styles for Family Website */

.ingredients-list .form-check {
    margin-bottom: 0.5rem;
}

.ingredients-list .form-check-label {
    cursor: pointer;
}

.instructions .badge {
    font-size: 0.75em;
    min-width: 1.5rem;
    text-align: center;
}

/* Family Tree Styles */
.family-tree-container {
    min-height: 400px;
    padding: 20px;
    background: var(--bs-body-bg);
}

.family-unit {
    background: var(--bs-secondary-bg);
    border: 2px solid var(--bs-border-color) !important;
    margin-bottom: 20px;
}

.family-tree-node {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.family-tree-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: var(--bs-primary);
}

.family-tree-node.claimed {
    border-color: var(--bs-success);
    background: rgba(var(--bs-success-rgb), 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.family-tree-node.claimed:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background: rgba(var(--bs-success-rgb), 0.2);
    border-color: var(--bs-success);
}

.parent-node {
    border-width: 2px;
    font-weight: 500;
}

.child-node {
    border-style: dashed;
    font-size: 0.9em;
}

.parents-row .family-tree-node {
    flex: 0 0 auto;
}

.children-row .family-tree-node {
    flex: 0 0 auto;
    max-width: 150px;
}

.jumbotron {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
}

/* Calendar customizations */
.fc-event {
    border: none !important;
    border-radius: 4px !important;
}

.fc-event-title {
    font-weight: 500;
}

/* Make calendar days appear clickable */
.fc-daygrid-day {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.fc-daygrid-day:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.fc-daygrid-day:active {
    background-color: rgba(var(--bs-primary-rgb), 0.2) !important;
}

/* Profile photo styling */
.profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid var(--bs-primary);
}

/* Card hover effects */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Wishlist and recipe cards */
.card img {
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .family-tree-node {
        min-width: 100px;
        font-size: 0.9em;
    }
    
    .family-tree-node img {
        width: 30px;
        height: 30px;
    }
}

/* Dark theme adjustments */
[data-bs-theme="dark"] .family-tree-node {
    background: var(--bs-dark);
    border-color: var(--bs-primary);
    color: var(--bs-light);
}

[data-bs-theme="dark"] .family-tree-node:hover {
    background: var(--bs-primary);
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)),
        url('../images/mountain-hero.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 5rem;
    font-weight: 400;
    color: white;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 2rem;
    letter-spacing: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hero-description {
    font-size: 1.3rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 18px 35px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features-section {
    background: var(--bs-body-bg);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-card {
    background: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--bs-primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card h4 {
    color: var(--bs-heading-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--bs-secondary-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
    .hero-section {
        margin-top: 0;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 3rem;
        letter-spacing: 3px;
    }
    
    .hero-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons .btn {
        padding: 12px 24px;
        margin: 0;
        display: block;
        width: 200px;
        text-align: center;
    }
    
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        justify-content: center !important;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Dark theme adjustments for new components */
[data-bs-theme="dark"] .hero-section {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)),
        url('../images/mountain-hero.jpg');
}

[data-bs-theme="dark"] .feature-card {
    background: var(--bs-dark);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .feature-card:hover {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
}
