:root {
    --profile-card-background-color: white; 
    --profile-picture-width: 200px; 
    --profile-picture-height: 200px;
    --profile-name-size: 1.8em;
    --profile-header-start: #1a365d;
    --profile-header-end: #2d74da;
} 

.profile-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
    gap: 32px;
}

.profile-card {
    background: var(--profile-card-background-color);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}

.profile-header {
    background: linear-gradient(135deg, var(--profile-header-start) 0%, var(--profile-header-end) 100%);
    padding: 40px 20px;
    display: flex;
    justify-content: center;
} 

.profile-picture {
    width: var(--profile-picture-width);
    height: var(--profile-picture-height);
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
} 

.profile-info {
    padding: 40px 30px;
    text-align: center;
}

.display-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.profile-name {
    font-size: 2em;
    margin: 0;
    color: var(--profile-header-start);
    display: inline-block;
} 

.display-name-input {
    font-size: 2em;
    color: var(--profile-header-start);
    padding: 5px 10px;
    border: 2px solid var(--profile-header-end);
    border-radius: 5px;
} 

.btn-edit-display,
.btn-save-display,
.btn-cancel-display {
    background-color: var(--profile-header-end);
    border: none;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    font-size: 1em;
    color: var(--text-color);
    transition: background-color 0.3s;
} 

.btn-edit-display:hover,
.btn-save-display:hover,
.btn-cancel-display:hover {
    background-color: var(--profile-header-start);
} 

.profile-position {
    font-size: 1.1em;
    color: #4a5568;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.profile-email {
    font-size: 1em;
    color: var(--profile-header-end);
    margin: 0 0 30px 0;
    word-break: break-all;
} 

.profile-details {
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f7fafc;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--profile-header-start);
} 

.detail-value {
    color: #4a5568;
    word-break: break-all;
}

.aboutme-row {
    flex-direction: column;
    align-items: flex-start;
}

.aboutme-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5px;
}

.aboutme-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.form-aboutMe-input {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid var(--profile-header-end);
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    box-sizing: border-box;
    min-height: 60px;
    resize: vertical;
    outline: none;
} 

.btn-edit-aboutMe,
.btn-save-aboutMe,
.btn-cancel-aboutMe {
    background-color: var(--profile-header-end);
    border: none;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    font-size: 0.9em;
    color: var(--text-color);
    transition: background-color 0.3s;
} 

.btn-edit-aboutMe:hover,
.btn-save-aboutMe:hover,
.btn-cancel-aboutMe:hover {
    background-color: var(--profile-header-start);
} 

.no-profile {
    text-align: center;
    font-size: 1.2em;
    color: #4a5568;
}

.profile-blogs {
    width: 100%;
    display: flex;
    justify-content: center;
}

.profile-blog-count {
    font-weight: 600;
    color: #a0aec0;
}

.no-blogs {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 0;
    color: #a0aec0;
}

/* Tablet Responsive */
@media (max-width: 768px) {
    :root {
        --profile-picture-width: 150px;
        --profile-picture-height: 150px;
    }

    .profile-container {
        padding: 30px 15px;
        min-height: 50vh;
    }

    .profile-header {
        padding: 30px 15px;
    }

    .profile-picture {
        width: var(--profile-picture-width, 150px);
        height: var(--profile-picture-height, 150px);
        border-width: 4px;
    }

    .profile-info {
        padding: 30px 20px;
    }

    .profile-name {
        font-size: var(--profile-name-size, 1.8em);
    }

    .profile-position {
        font-size: 1em;
    }

    .profile-email {
        font-size: 0.9em;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    :root {
        --profile-picture-width: 120px;
        --profile-picture-height: 120px;
    }

    .profile-container {
        padding: 20px 10px;
        min-height: 100vh;
    }

    .profile-card {
        min-width: 0;
        width: 100%;
        border-radius: 10px;
    }

    .profile-header {
        min-width: 0;
        width: 100%;
        padding: 20px 10px;
    }

    .profile-picture {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }

    .profile-info {
        min-width: 0;
        width: 100%;
        padding: 20px 15px;
    }

    .profile-name {
        font-size: 1.4em;
        margin: 0 0 8px 0;
    }

    .profile-position {
        font-size: 0.9em;
        margin: 0 0 4px 0;
    }

    .profile-email {
        font-size: 0.85em;
        margin: 0 0 20px 0;
    }

    .profile-details {
        min-width: 0;
        width: 100%;
        padding-top: 20px;
    }

    .detail-item {
        min-width: 0;
        width: 100%;
        padding: 10px 0;
        flex-direction: column;
        gap: 5px;
    }

    .detail-label {
        display: block;
        margin-bottom: 2px;
    }

    .detail-value {
        display: block;
        font-size: 0.9em;
    }

    html, body {
        min-width: 0;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .no-profile {
        font-size: 1em;
        padding: 20px;
    }
}