/* Moon Browser Profile Viewing System - CSS */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --light-gray: #f3f4f6;
    --border-gray: #e5e7eb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 20px;
}

.spinner {
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: var(--text-light);
    font-weight: 500;
}

/* Error State */
.error-container {
    background: white;
    padding: 40px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin-top: 20px;
}

.error-container h2 {
    color: var(--danger-color);
    margin-bottom: 10px;
}

.error-container p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Profile Header */
.profile-header {
    background: white;
    padding: 30px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-bottom: 20px;
}

.profile-photo {
    margin-bottom: 20px;
}

.profile-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.profile-info h1 {
    font-size: 28px;
    color: var(--text-dark);
    margin: 15px 0 5px;
}

.position {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 3px;
}

.company {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Contact Actions */
.contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.action-btn .icon {
    font-size: 24px;
}

.call-btn {
    background: var(--success-color);
    color: white;
}

.call-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background: #20ba58;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.email-btn {
    background: var(--primary-color);
    color: white;
}

.email-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-btn {
    background: #f97316;
    color: white;
}

.contact-btn:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sections */
.section {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.section h2 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
}

.bio-text {
    color: var(--text-light);
    line-height: 1.8;
    white-space: pre-wrap;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.product-card {
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-gray);
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-description {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Attachments List */
.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--light-gray);
    border-radius: var(--radius);
    transition: var(--transition);
}

.attachment-item:hover {
    background: #dbeafe;
    transform: translateX(5px);
}

.attachment-name {
    font-weight: 500;
    color: var(--text-dark);
    flex: 1;
    word-break: break-word;
}

.attachment-type {
    font-size: 12px;
    color: var(--text-light);
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 10px;
}

.attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.attachment-link:hover {
    background: var(--secondary-color);
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--light-gray);
    text-decoration: none;
    font-size: 20px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 640px) {
    .profile-container {
        padding: 15px;
    }

    .profile-header {
        padding: 20px 15px;
    }

    .profile-photo img {
        width: 120px;
        height: 120px;
    }

    .profile-info h1 {
        font-size: 24px;
    }

    .contact-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .action-btn {
        padding: 12px;
        font-size: 12px;
    }

    .action-btn .icon {
        font-size: 20px;
    }

    .section {
        padding: 15px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .profile-info h1 {
        font-size: 20px;
    }

    .position {
        font-size: 14px;
    }

    .company {
        font-size: 12px;
    }

    .section h2 {
        font-size: 18px;
    }
}
