/* Profile Page Styles - Matches home.css design */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    margin-bottom: 20px;
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.page-header .subtitle {
    color: #666;
    font-size: 1.1em;
}

/* Navigation */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 10px 20px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #667eea;
}

.nav-links a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
}

.avatar {
    font-size: 100px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-info h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2em;
}

.profile-info p {
    color: #666;
    margin: 5px 0;
    font-size: 1.1em;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.stat-card .number {
    font-size: 3em;
    font-weight: bold;
    margin: 10px 0;
}

.stat-card .label {
    font-size: 1em;
    opacity: 0.9;
}

/* Biography Section */
.biography-section {
    margin: 30px 0;
}

.biography-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.biography-section p {
    line-height: 1.8;
    color: #555;
    font-size: 1.05em;
}

/* Button */
.btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Edit Form */
.edit-form {
    display: none;
    margin-top: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.edit-form.active {
    display: block;
}

.edit-form h4 {
    color: #667eea;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Family Section */
.family-section {
    margin-top: 30px;
}

.family-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.person-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.person-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.person-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.person-card .name {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.person-card .details {
    font-size: 0.95em;
    color: #666;
}

/* Loading & Error States */
.loading {
    text-align: center;
    padding: 60px;
    color: #666;
    font-size: 1.2em;
}

.error {
    background: #fee;
    color: #c33;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        padding: 25px 20px;
    }

    .page-header h1 {
        font-size: 2em;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .avatar {
        font-size: 80px;
        width: 120px;
        height: 120px;
    }

    .profile-info h2 {
        font-size: 1.5em;
    }

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

    .person-list {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links a {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}