/* Profile Maker CSS */

/* Main Profile Grid Layout */
.profile-maker-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.profile-maker-cover {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    min-height: 200px;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.profile-maker-avatar-wrapper {
    position: absolute;
    left: 2rem;
    bottom: -48px;
    z-index: 2;
}

.profile-maker-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    object-fit: cover;
}

.profile-maker-info {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.profile-maker-section {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

/* Profile Entries Grid */
.profile-maker-entries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.profile-maker-entry {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-maker-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.profile-maker-entry-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-maker-entry-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.profile-maker-entry-type {
    background: #0073aa;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-maker-entry-content {
    padding: 1.5rem;
}

.profile-maker-entry-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.profile-maker-entry-media {
    margin: 1rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.profile-maker-entry-media img,
.profile-maker-entry-media video {
    width: 100%;
    height: auto;
    display: block;
}

.profile-maker-entry-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.profile-maker-entry-actions {
    display: flex;
    gap: 0.5rem;
}

.profile-maker-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-maker-btn-primary {
    background: #0073aa;
    color: #fff;
}

.profile-maker-btn-primary:hover {
    background: #005a87;
    color: #fff;
}

.profile-maker-btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.profile-maker-btn-secondary:hover {
    background: #e0e0e0;
    color: #333;
}

.profile-maker-btn-danger {
    background: #dc3545;
    color: #fff;
}

.profile-maker-btn-danger:hover {
    background: #c82333;
    color: #fff;
}

.profile-maker-btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

/* Profile Gallery */
.profile-maker-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.profile-maker-gallery-item {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease;
}

.profile-maker-gallery-item:hover {
    transform: scale(1.05);
}

.profile-maker-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.profile-maker-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.profile-maker-gallery-item:hover .profile-maker-gallery-overlay {
    transform: translateY(0);
}

/* Profile Videos */
.profile-maker-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.profile-maker-video-item {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.profile-maker-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.profile-maker-video-container iframe,
.profile-maker-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.profile-maker-video-info {
    padding: 1rem 1.5rem;
}

.profile-maker-video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.profile-maker-video-description {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Profile Covers */
.profile-maker-covers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.profile-maker-cover-item {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease;
}

.profile-maker-cover-item:hover {
    transform: scale(1.02);
}

.profile-maker-cover-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.profile-maker-cover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 1rem;
}

.profile-maker-cover-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.profile-maker-cover-description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Profile Widgets */
.profile-maker-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.profile-maker-widget {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.profile-maker-widget-header {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.profile-maker-widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.profile-maker-widget-content {
    padding: 1.5rem;
}

.profile-maker-widget-text {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.profile-maker-widget-html {
    color: #333;
    line-height: 1.6;
}

.profile-maker-widget-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.profile-maker-widget-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.profile-maker-widget-video iframe,
.profile-maker-widget-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.5rem;
}

/* Profile Forms */
.profile-maker-form {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-maker-form-group {
    margin-bottom: 1.5rem;
}

.profile-maker-form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.profile-maker-form-input,
.profile-maker-form-textarea,
.profile-maker-form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.profile-maker-form-input:focus,
.profile-maker-form-textarea:focus,
.profile-maker-form-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

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

.profile-maker-form-checkbox {
    margin-right: 0.5rem;
}

/* Profile Upload Forms */
.profile-maker-upload-form {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s ease;
}

.profile-maker-upload-form:hover {
    border-color: #0073aa;
}

.profile-maker-upload-area {
    margin-bottom: 1rem;
}

.profile-maker-upload-input {
    display: none;
}

.profile-maker-upload-label {
    display: inline-block;
    padding: 1rem 2rem;
    background: #0073aa;
    color: #fff;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.profile-maker-upload-label:hover {
    background: #005a87;
}

/* Profile Comments */
.profile-maker-comments {
    margin-top: 1rem;
}

.profile-maker-comment {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.profile-maker-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.profile-maker-comment-author {
    font-weight: 600;
    color: #333;
}

.profile-maker-comment-date {
    font-size: 0.8rem;
    color: #666;
}

.profile-maker-comment-text {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.profile-maker-comment-form {
    margin-top: 1rem;
}

/* Profile Statistics */
.profile-maker-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-maker-stat {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.profile-maker-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0073aa;
    margin: 0 0 0.5rem 0;
}

.profile-maker-stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Profile Modals */
.profile-maker-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
}

.profile-maker-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-maker-modal-content {
    background: #fff;
    border-radius: 0.75rem;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    position: relative;
}

.profile-maker-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1;
}

.profile-maker-modal-close:hover {
    background: rgba(0,0,0,0.7);
}

.profile-maker-modal-body {
    padding: 2rem;
}

/* Profile Loading States */
.profile-maker-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #666;
}

.profile-maker-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: profile-maker-spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes profile-maker-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Profile Responsive Design */
@media (max-width: 768px) {
    .profile-maker-grid-container {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }
    
    .profile-maker-entries-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-maker-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .profile-maker-videos {
        grid-template-columns: 1fr;
    }
    
    .profile-maker-covers {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .profile-maker-widgets {
        grid-template-columns: 1fr;
    }
    
    .profile-maker-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-maker-avatar-wrapper {
        left: 1rem;
        bottom: -32px;
    }
    
    .profile-maker-avatar {
        width: 64px;
        height: 64px;
    }
    
    .profile-maker-info {
        margin-top: 2rem;
        padding: 1rem;
    }
    
    .profile-maker-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .profile-maker-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-maker-avatar-wrapper {
        left: 0.5rem;
        bottom: -24px;
    }
    
    .profile-maker-avatar {
        width: 48px;
        height: 48px;
    }
    
    .profile-maker-info {
        margin-top: 1.5rem;
        padding: 0.75rem;
    }
    
    .profile-maker-section {
        padding: 0.75rem;
    }
}

/* Profile Utility Classes */
.profile-maker-text-center {
    text-align: center;
}

.profile-maker-text-left {
    text-align: left;
}

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

.profile-maker-mb-0 {
    margin-bottom: 0;
}

.profile-maker-mb-1 {
    margin-bottom: 0.5rem;
}

.profile-maker-mb-2 {
    margin-bottom: 1rem;
}

.profile-maker-mb-3 {
    margin-bottom: 1.5rem;
}

.profile-maker-mt-0 {
    margin-top: 0;
}

.profile-maker-mt-1 {
    margin-top: 0.5rem;
}

.profile-maker-mt-2 {
    margin-top: 1rem;
}

.profile-maker-mt-3 {
    margin-top: 1.5rem;
}

.profile-maker-hidden {
    display: none;
}

.profile-maker-visible {
    display: block;
}

.profile-maker-d-none {
    display: none !important;
}

.profile-maker-d-block {
    display: block !important;
}

.profile-maker-d-flex {
    display: flex !important;
}

.profile-maker-d-grid {
    display: grid !important;
}

/* Profile Animation Classes */
.profile-maker-fade-in {
    animation: profile-maker-fadeIn 0.3s ease-in;
}

@keyframes profile-maker-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.profile-maker-slide-up {
    animation: profile-maker-slideUp 0.3s ease-out;
}

@keyframes profile-maker-slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.profile-maker-scale-in {
    animation: profile-maker-scaleIn 0.3s ease-out;
}

@keyframes profile-maker-scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Profile Maker - Main Styles */

/* Container */
.profile-maker-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Profile Header */
.profile-header {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 2rem;
}

.profile-cover {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    overflow: hidden;
}

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

.cover-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.profile-info {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.change-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.profile-username {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 1rem 0;
}

.profile-actions {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #0073aa;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* Profile Sections */
.profile-section {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title i {
    margin-right: 0.5rem;
    color: #0073aa;
}

.add-stat-btn,
.add-field-btn,
.add-section-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.view-all-link {
    font-size: 0.9rem;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

/* Statistics Grid */
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0073aa;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.stat-number {
    color: #0073aa;
}

.stat-percentage {
    color: #28a745;
}

.stat-currency {
    color: #ffc107;
}

.stat-text {
    color: #333;
}

.stat-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.stat-card:hover .stat-actions {
    opacity: 1;
}

.edit-stat-btn,
.delete-stat-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.edit-stat-btn {
    background: #ffc107;
    color: #333;
}

.delete-stat-btn {
    background: #dc3545;
    color: white;
}

/* Custom Fields Grid */
.custom-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.field-card {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.field-label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.edit-field-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.field-content {
    color: #666;
    line-height: 1.5;
}

.field-value {
    word-break: break-word;
}

.field-value a {
    color: #0073aa;
    text-decoration: none;
}

.field-value a:hover {
    text-decoration: underline;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: #e9ecef;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0073aa;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.activity-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.activity-stats {
    display: flex;
    gap: 0.5rem;
}

.activity-stats i {
    margin-right: 0.25rem;
}

.activity-actions {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.activity-item:hover .activity-actions {
    opacity: 1;
}

.delete-entry-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Custom Sections */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.section-card {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-section-btn,
.delete-section-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.edit-section-btn {
    background: #ffc107;
    color: #333;
}

.delete-section-btn {
    background: #dc3545;
    color: white;
}

.section-description {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.section-content {
    color: #333;
    line-height: 1.6;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

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

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Existing Items Lists */
.existing-fields,
.existing-stats {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.existing-fields h4,
.existing-stats h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
}

.field-item,
.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.field-item button,
.stat-item button {
    padding: 0.25rem 0.75rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-maker-container {
        padding: 10px;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-actions {
        justify-content: center;
    }
    
    .statistics-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-fields-grid {
        grid-template-columns: 1fr;
    }
    
    .sections-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .activity-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Error States */
.profile-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #f5c6cb;
    text-align: center;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Field Input Styles */
.field-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.field-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.save-field-btn {
    padding: 0.5rem 1rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.8rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.radio-option input[type="radio"] {
    margin: 0;
}

.required {
    color: #dc3545;
}

/* Statistics Input Styles */
.stat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.stat-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.save-stat-btn {
    padding: 0.5rem 1rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.8rem;
} 