/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

/*
 * ========================================================================
 * ProfilePress Standalone Sections Styling
 * ========================================================================
 * To enable custom styling for ProfilePress standalone shortcodes,
 * uncomment the line below:
 */

/* @import url('profilepress-standalone.css'); */

/*
 * Or add your custom ProfilePress styles directly below this comment.
 * See profilepress-standalone.css for example styles.
 */

/*
 * ========================================================================
 * Menu User Info & Avatar Styling
 * ========================================================================
 */

/* User info menu item - vertical layout */
.menu-item-user-info {
    text-align: center !important;
    padding: 20px 15px !important;
}

.menu-item-user-info .menu-user-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px;
    text-decoration: none !important;
}

/* Avatar wrapper - centered */
.menu-user-avatar-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Avatar wrapper styling */
.menu-user-avatar-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Avatar styling - larger for vertical layout */
.menu-user-avatar,
.menu-user-avatar-wrapper img,
.menu-user-avatar-wrapper .avatar {
    border-radius: 50%;
    width: 64px !important;
    height: 64px !important;
    display: block;
    border: none !important;
    box-shadow: none !important;
}

/* Prevent vertical images from being skewed */
.menu-user-avatar img,
.menu-user-avatar-wrapper img,
.menu-user-avatar-wrapper .avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    display: block !important;
}

/* User name wrapper - below avatar */
.menu-user-name-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* User name styling - centered below avatar */
.menu-user-name {
    display: block;
    text-align: center;
    font-weight: 600;
    color: #ffffff !important;
    font-size: 14px;
}

/* Hover effect */
.menu-item-user-info:hover .menu-user-avatar {
    opacity: 0.9;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.menu-item-user-info:hover .menu-user-name {
    color: #ffffff !important;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/*
 * ========================================================================
 * Opera Asia Profile Card Styling
 * ========================================================================
 * Shortcode: [pp-my-profile-card]
 */

.opera-profile-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    max-width: 450px;
    margin: 0 auto;
}

.opera-profile-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* Profile Header - Avatar + Name */
.opera-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.opera-profile-avatar {
    flex-shrink: 0;
}

.opera-profile-avatar img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.opera-profile-info {
    flex: 1;
}

.opera-profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

.opera-profile-role {
    font-size: 13px;
    color: #c8a165;
    font-weight: 600;
    margin: 0 0 3px 0;
}

.opera-profile-org {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Profile Details Section */
.opera-profile-details {
    background: #fafafa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.opera-profile-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.opera-profile-detail-item:not(:last-child) {
    border-bottom: 1px solid #e8e8e8;
}

.opera-profile-detail-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.opera-profile-detail-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.opera-profile-detail-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.opera-profile-detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

/* Profile Stats Section */
.opera-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.opera-profile-stat {
    text-align: center;
    padding: 15px 10px;
    background: #fafafa;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.opera-profile-stat-icon {
    font-size: 24px;
}

.opera-profile-stat-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.opera-profile-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.opera-profile-stat-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Footer - Button */
.opera-profile-footer {
    text-align: center;
}

.opera-profile-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #c8a165 !important;
    border: 2px solid #c8a165;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.opera-profile-button:hover {
    background: #c8a165;
    color: #ffffff !important;
}

.opera-profile-button-arrow {
    transition: transform 0.3s ease;
}

.opera-profile-button:hover .opera-profile-button-arrow {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .opera-profile-card {
        padding: 20px;
    }

    .opera-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .opera-profile-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .opera-profile-stat {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }

    .opera-profile-stat-content {
        text-align: left;
    }
}

/*
 * ========================================================================
 * ProfilePress Form Layout - Two Column Grid
 * ========================================================================
 */

/* Form row wrapper for two-column layout */
.ppress-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 0;
}

/* Full-width field (spans entire row) */
.ppress-form-col-full {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Half-width field (two per row) */
.ppress-form-col-half {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .ppress-form-col-half {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ppress-form-row {
        gap: 0;
    }
}

/*
 * ========================================================================
 * Dashboard as Homepage Checkbox Styling
 * ========================================================================
 */

.profilepress-myaccount-form-field.ppress-dashboard-as-homepage {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.ppress-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin: 0;
}

.ppress-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
}

.ppress-dashboard-as-homepage .description {
    font-size: 13px;
    color: #666;
    margin: 10px 0 0 30px;
    line-height: 1.5;
}