/**
 * Match Seeker Profile System - Styles
 * IndianMarriage Platform
 * Comprehensive CSS for Profile Management Module
 */

/* ============================================================================
   PROFILE CARD STYLES
   ============================================================================ */

.profile-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.profile-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.profile-card__image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f3f4f6;
}

.profile-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.profile-card__badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.profile-card__content {
    padding: 20px;
}

.profile-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.profile-card__name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.profile-card__id {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.profile-card__details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.profile-card__detail {
    display: flex;
    font-size: 0.875rem;
}

.profile-card__detail-label {
    color: #6b7280;
    min-width: 90px;
    font-weight: 500;
}

.profile-card__detail-value {
    color: #111827;
    font-weight: 400;
}

.profile-card__compatibility {
    margin-bottom: 16px;
}

.profile-card__actions {
    display: flex;
    gap: 8px;
}

.profile-card__actions .btn {
    flex: 1;
    justify-content: center;
}

/* Skeleton Loading State */
.profile-card--skeleton {
    pointer-events: none;
}

.profile-card--skeleton .skeleton {
    background: linear-gradient(
        90deg,
        #f3f4f6 25%,
        #e5e7eb 50%,
        #f3f4f6 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-image {
    width: 100%;
    height: 280px;
}

.skeleton-text {
    height: 16px;
    margin: 8px 0;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================================================
   PROFILE GRID STYLES
   ============================================================================ */

.profile-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-grid__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

@media (max-width: 640px) {
    .profile-grid__items {
        grid-template-columns: 1fr;
    }
}

.profile-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.profile-grid__empty i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 16px;
}

.profile-grid__empty h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 16px 0 8px;
}

.profile-grid__empty p {
    color: #6b7280;
    font-size: 1rem;
}

.profile-grid__error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.profile-grid__error i {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 16px;
}

.profile-grid__error h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 16px 0 8px;
}

.profile-grid__error p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 24px;
}

/* ============================================================================
   PROFILE EDITOR STYLES
   ============================================================================ */

.profile-editor {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-editor__header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.profile-editor__header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

.profile-editor__body {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 600px;
}

@media (max-width: 768px) {
    .profile-editor__body {
        grid-template-columns: 1fr;
    }
}

.profile-editor__navigation {
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 768px) {
    .profile-editor__navigation {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        flex-direction: row;
        overflow-x: auto;
    }
}

.profile-editor__nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.profile-editor__nav-item:hover {
    background: #e5e7eb;
    color: #111827;
}

.profile-editor__nav-item.active {
    background: #ec4899;
    color: #ffffff;
}

.profile-editor__nav-item i {
    font-size: 1rem;
    color: #10b981;
}

.profile-editor__content {
    padding: 24px;
}

.profile-editor__footer {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Profile Completion Widget */
.profile-completion {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
}

.profile-completion__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 8px;
}

.profile-completion__bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.profile-completion__progress {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.profile-completion__percentage {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    text-align: right;
}

/* Profile Sections */
.profile-section {
    max-width: 800px;
}

.profile-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 24px 0;
}

.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.profile-section-content {
    margin-top: 24px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

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

/* ============================================================================
   PROFILE FILTERS STYLES
   ============================================================================ */

.profile-filters {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-filters__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.profile-filters__header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.profile-filters__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.profile-filters__footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #111827;
    background: #ffffff;
}

.filter-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-range input {
    flex: 1;
}

.filter-range span {
    color: #6b7280;
    font-size: 0.875rem;
}

.filter-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 16px;
    font-size: 0.875rem;
    color: #374151;
}

.filter-tag button {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

/* ============================================================================
   PROFILE VIEW STYLES
   ============================================================================ */

.profile-view {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-hero {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.profile-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 24px;
}

.profile-info-section {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.profile-info-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

.profile-info-section .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 640px) {
    .profile-info-section .info-grid {
        grid-template-columns: 1fr;
    }
}

.profile-info-section .info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-info-section .info-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-info-section .info-value {
    font-size: 0.875rem;
    color: #111827;
}

.profile-compatibility {
    padding: 24px;
    background: #f9fafb;
}

.profile-actions {
    padding: 24px;
    display: flex;
    gap: 12px;
}

/* ============================================================================
   PHOTO GALLERY STYLES
   ============================================================================ */

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.photo-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.photo-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-thumbnail:hover img {
    transform: scale(1.1);
}

.photo-upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-upload-zone:hover {
    border-color: #ec4899;
    background: #fdf2f8;
}

.photo-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-thumbnail:hover .photo-actions {
    opacity: 1;
}

/* ============================================================================
   COMPATIBILITY & MATCH STYLES
   ============================================================================ */

.compatibility-score {
    font-size: 2rem;
    font-weight: 700;
    color: #ec4899;
}

.compatibility-meter {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.compatibility-meter__bar {
    height: 100%;
    background: linear-gradient(90deg, #ec4899, #db2777);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.match-percentage {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ec4899;
}

/* ============================================================================
   BADGE STYLES
   ============================================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-verified {
    background: #10b981;
    color: #ffffff;
}

.badge-premium {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #1f2937;
}

.badge-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
}

.badge-platinum {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    color: #1f2937;
}

.badge-diamond {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: #ffffff;
}

/* ============================================================================
   PAGINATION STYLES
   ============================================================================ */

.profile-grid__pagination {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination__btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.pagination__btn--active {
    background: #ec4899;
    border-color: #ec4899;
    color: #ffffff;
}

.pagination__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination__ellipsis {
    padding: 0 8px;
    color: #9ca3af;
}

/* ============================================================================
   BUTTON STYLES
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: #ec4899;
    color: #ffffff;
}

.btn-primary:hover {
    background: #db2777;
}

.btn-secondary {
    background: #6b7280;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-outline:hover {
    background: #f3f4f6;
}

.btn-success {
    background: #10b981;
    color: #ffffff;
}

.btn-success:hover {
    background: #059669;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.btn-block {
    width: 100%;
}

.btn-link {
    background: transparent;
    color: #ec4899;
    padding: 0;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================================
   ICON STYLES
   ============================================================================ */

.icon-large {
    font-size: 3rem;
}

.icon-eye::before {
    content: "\1F441";
}

.icon-heart::before {
    content: "\2764";
}

.icon-bookmark::before {
    content: "\1F516";
}

.icon-bookmark-filled::before {
    content: "\1F4D1";
}

.icon-check::before {
    content: "\2713";
}

.icon-check-circle::before {
    content: "\2705";
}

.icon-circle::before {
    content: "\25CB";
}

.icon-loading::before {
    content: "\21BB";
    animation: spin 1s linear infinite;
}

.icon-save::before {
    content: "\1F4BE";
}

.icon-search::before {
    content: "\1F50D";
}

.icon-alert-circle::before {
    content: "\26A0";
}

.icon-chevron-left::before {
    content: "\2039";
}

.icon-chevron-right::before {
    content: "\203A";
}

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

/* ============================================================================
   PROFILE COMPLETION WIDGET
   ============================================================================ */

.profile-completion-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-completion-widget__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.profile-completion-widget__header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.profile-completion-widget__percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ec4899;
}

.profile-completion-widget__bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.profile-completion-widget__progress {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.profile-completion-widget__steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.completion-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: #6b7280;
}

.completion-step i {
    font-size: 1.25rem;
}

.completion-step.completed {
    color: #10b981;
}

/* ============================================================================
   RESPONSIVE STYLES
   ============================================================================ */

@media (max-width: 1024px) {
    .profile-grid__items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-editor__body {
        grid-template-columns: 1fr;
    }

    .profile-editor__navigation {
        flex-direction: row;
        overflow-x: auto;
    }

    .profile-info-section .info-grid {
        grid-template-columns: 1fr;
    }

    .profile-actions {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .profile-grid__items {
        grid-template-columns: 1fr;
    }

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

    .profile-card__actions {
        flex-direction: column;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

/* ============================================================================
   DARK MODE SUPPORT (Optional)
   ============================================================================ */

@media (prefers-color-scheme: dark) {
    .profile-card {
        background: #1f2937;
    }

    .profile-card__name {
        color: #f9fafb;
    }

    .profile-card__detail-value {
        color: #e5e7eb;
    }

    .profile-editor {
        background: #1f2937;
    }

    .profile-editor__navigation {
        background: #111827;
        border-right-color: #374151;
    }

    .profile-filters {
        background: #1f2937;
    }

    .profile-filters__header,
    .profile-filters__footer {
        border-color: #374151;
    }
}
