/**
 * Dating Core - Profile Styles
 *
 * @package DatingCore
 */

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
    --dc-primary: #e91e63;
    --dc-secondary: #9c27b0;
    --dc-success: #4caf50;
    --dc-danger: #f44336;
    --dc-warning: #ff9800;
    --dc-dark: #212121;
    --dc-light: #f5f5f5;
    --dc-gray: #757575;
    --dc-border: #e0e0e0;
    --dc-radius: 16px;
    --dc-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    --dc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Profile Edit Container - Website Style Layout
   ========================================================================== */

.dc-profile-edit-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Website Mode Wrapper */
.dc-profile-page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.dc-profile-page-wrapper .dc-page-nav {
    margin-bottom: 30px;
}

/* Page Navigation Styling */
.dc-profile-page-wrapper .dc-page-nav {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.dc-profile-page-wrapper .dc-page-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    color: #64748b;
    text-decoration: none !important;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dc-profile-page-wrapper .dc-page-nav-item:hover {
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none !important;
}

.dc-profile-page-wrapper .dc-page-nav-item.active {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: #fff;
    text-decoration: none !important;
}

.dc-profile-page-wrapper .dc-page-nav-item span {
    text-decoration: none !important;
}

.dc-profile-page-wrapper .dc-page-nav-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.dc-profile-edit-card {
    background: #fff;
    border-radius: var(--dc-radius);
    box-shadow: var(--dc-shadow);
    padding: 40px;
}

.dc-profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.dc-profile-header h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: var(--dc-dark);
}

.dc-profile-header p {
    margin: 0;
    color: var(--dc-gray);
    font-size: 16px;
}

/* ==========================================================================
   Profile Image Section
   ========================================================================== */

.dc-profile-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--dc-border);
}

.dc-profile-image-preview {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: var(--dc-light);
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.dc-profile-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dc-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dc-gray);
    cursor: pointer;
}

.dc-image-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

.dc-image-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(244, 67, 54, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity var(--dc-transition);
}

.dc-profile-image-preview:hover .dc-image-delete {
    opacity: 1;
}

.dc-profile-image-actions {
    text-align: center;
}

.dc-image-hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--dc-gray);
}

/* ==========================================================================
   Form Sections
   ========================================================================== */

.dc-form-section {
    margin-bottom: 40px;
}

.dc-form-section h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dc-dark);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--dc-primary);
    display: inline-block;
}

.dc-section-desc {
    margin: -12px 0 20px;
    color: var(--dc-gray);
    font-size: 14px;
}

.dc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.dc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dc-dark);
}

.dc-form-group label .required {
    color: var(--dc-danger);
}

.dc-form-group input[type="text"],
.dc-form-group input[type="date"],
.dc-form-group select,
.dc-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--dc-border);
    border-radius: 10px;
    font-size: 16px;
    color: var(--dc-dark);
    background: #fff;
    transition: border-color var(--dc-transition), box-shadow var(--dc-transition);
}

.dc-form-group input:focus,
.dc-form-group select:focus,
.dc-form-group textarea:focus {
    outline: none;
    border-color: var(--dc-primary);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.15);
}

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

.dc-char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--dc-gray);
    margin-top: 6px;
}

.dc-field-error {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: var(--dc-danger);
}

.dc-field-error.visible {
    display: block;
}

/* ==========================================================================
   Interests Grid
   ========================================================================== */

.dc-interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.dc-interest-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 2px solid var(--dc-border);
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--dc-transition);
    text-align: center;
}

.dc-interest-item input {
    display: none;
}

.dc-interest-item span {
    font-size: 14px;
    color: var(--dc-dark);
}

.dc-interest-item:hover {
    border-color: var(--dc-primary);
}

.dc-interest-item.selected {
    background: linear-gradient(135deg, var(--dc-primary), var(--dc-secondary));
    border-color: transparent;
}

.dc-interest-item.selected span {
    color: #fff;
}

/* ==========================================================================
   Privacy Options
   ========================================================================== */

.dc-privacy-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dc-privacy-option {
    display: block;
    padding: 20px;
    border: 2px solid var(--dc-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--dc-transition);
}

.dc-privacy-option input {
    display: none;
}

.dc-privacy-option:hover {
    border-color: var(--dc-primary);
}

.dc-privacy-option.selected {
    border-color: var(--dc-primary);
    background: rgba(233, 30, 99, 0.05);
}

.dc-privacy-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.dc-privacy-content .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--dc-primary);
    margin-top: 2px;
}

.dc-privacy-content strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dc-dark);
}

.dc-privacy-content p {
    margin: 0;
    font-size: 13px;
    color: var(--dc-gray);
}

/* ==========================================================================
   Form Actions
   ========================================================================== */

.dc-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--dc-border);
}

.dc-form-message {
    display: none;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.dc-form-message.visible {
    display: block;
}

.dc-form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.dc-form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ==========================================================================
   Profile View Container - Website Style Layout
   ========================================================================== */

.dc-profile-view-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.dc-profile-view-card {
    background: #fff;
    border-radius: var(--dc-radius);
    box-shadow: var(--dc-shadow);
    overflow: hidden;
}

/* ==========================================================================
   Profile Hero
   ========================================================================== */

.dc-profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e91e63 100%);
    color: #fff;
    text-align: center;
}

.dc-profile-image-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.dc-profile-main-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.dc-profile-no-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.5);
}

.dc-profile-no-image .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.7);
}

/* Online Badge */
.dc-online-badge {
    position: absolute;
    bottom: 10px;
    right: -10px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dc-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dc-online-online .dc-online-dot {
    background: var(--dc-success);
    animation: pulse 2s infinite;
}

.dc-online-online {
    color: var(--dc-success);
}

.dc-online-away .dc-online-dot {
    background: var(--dc-warning);
}

.dc-online-away {
    color: var(--dc-warning);
}

.dc-online-offline .dc-online-dot {
    background: var(--dc-gray);
}

.dc-online-offline {
    color: var(--dc-gray);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Verified Badge */
.dc-verified-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dc-success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dc-verified-badge .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Profile Info */
.dc-profile-info {
    width: 100%;
}

.dc-profile-name {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
}

.dc-profile-age {
    font-weight: 400;
    opacity: 0.9;
}

.dc-profile-location,
.dc-profile-gender {
    margin: 6px 0;
    font-size: 16px;
    opacity: 0.9;
}

.dc-profile-location .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Profile Actions */
.dc-profile-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

/* ==========================================================================
   Profile Stats
   ========================================================================== */

.dc-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--dc-border);
}

.dc-stat {
    padding: 24px;
    text-align: center;
    border-right: 1px solid var(--dc-border);
}

.dc-stat:last-child {
    border-right: none;
}

.dc-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--dc-dark);
}

.dc-stat-label {
    display: block;
    font-size: 13px;
    color: var(--dc-gray);
    margin-top: 4px;
}

/* ==========================================================================
   Profile Sections
   ========================================================================== */

.dc-profile-section {
    padding: 32px 40px;
    border-bottom: 1px solid var(--dc-border);
}

.dc-profile-section:last-child {
    border-bottom: none;
}

.dc-profile-section h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dc-dark);
}

.dc-profile-bio {
    color: var(--dc-dark);
    font-size: 16px;
    line-height: 1.7;
}

/* Interests List */
.dc-interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dc-interest-tag {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(156, 39, 176, 0.1));
    color: var(--dc-primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Gallery Grid */
.dc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dc-gallery-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
}

.dc-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dc-transition);
}

.dc-gallery-item:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dc-transition);
    text-decoration: none;
}

.dc-btn-primary {
    background: linear-gradient(135deg, var(--dc-primary), var(--dc-secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.dc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    color: #fff;
}

.dc-btn-secondary {
    background: var(--dc-light);
    color: var(--dc-dark);
}

.dc-btn-secondary:hover {
    background: #e0e0e0;
    color: var(--dc-dark);
}

.dc-btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

.dc-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.dc-btn:disabled,
.dc-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.dc-btn .dc-btn-loading {
    display: none;
}

.dc-btn.loading .dc-btn-text {
    display: none;
}

.dc-btn.loading .dc-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dc-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .dc-profile-edit-card,
    .dc-profile-section {
        padding: 24px;
    }

    .dc-form-row {
        grid-template-columns: 1fr;
    }

    .dc-profile-stats {
        grid-template-columns: 1fr;
    }

    .dc-stat {
        border-right: none;
        border-bottom: 1px solid var(--dc-border);
        padding: 16px;
    }

    .dc-stat:last-child {
        border-bottom: none;
    }

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

    .dc-profile-actions {
        flex-wrap: wrap;
    }
}


