/* E-Profile Modern CSS - Warm Tone Design */
:root {
    --primary-color: #f59e0b;
    --secondary-color: #fb923c;
    --accent-color: #fbbf24;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #78350f;
    --light-color: #fffbeb;
    --gradient-1: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-2: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    --gradient-3: linear-gradient(135deg, #fde047 0%, #.hover\:bg-blue-200:hover {
    background: rgba(251, 191, 36, 0.25);
    transform: translateY(-1px);
}15 100%);
    --gradient-4: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    --gradient-soft: linear-gradient(135deg, #fbbf2415 0%, #f59e0b15 100%);
    --border-radius: 20px;
    --shadow-soft: 0 8px 32px rgba(120, 53, 15, 0.07);
    --shadow-hover: 0 12px 48px rgba(120, 53, 15, 0.12);
}

.profile-container {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fffbeb 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    font-family: 'Noto Sans Thai', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
}

.profile-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.profile-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.header-section {
    background: var(--gradient-1);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s ease-in-out infinite;
    opacity: 0.5;
}

.header-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(10px, 10px) rotate(2deg); }
}

.profile-image {
    width: 240px;
    height: 320px;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    border: 5px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 15px 45px rgba(245, 158, 11, 0.25), 0 0 0 1px rgba(251, 191, 36, 0.3);
    object-fit: cover;
    object-position: center top;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.profile-image:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.35), 0 0 0 2px rgba(251, 191, 36, 0.5);
    border-color: rgba(255, 255, 255, 0.95);
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.profile-title {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
}

.info-section {
    padding: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border-radius: 18px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-soft);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.8);
}

.info-card:hover::before {
    opacity: 1;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.section-title i {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: 0.5rem 0;
    border-bottom: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    background: transparent;
}

.contact-item:hover {
    background: rgba(251, 191, 36, 0.08);
    transform: translateX(5px);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.badge-modern {
    background: rgba(255, 255, 255, 0.9);
    color: #92400e;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 500;
    display: inline-block;
    margin: 0.25rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    transition: all 0.3s ease;
    font-size: 0.875rem;
    border: 1.5px solid rgba(251, 191, 36, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge-modern:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(251, 191, 36, 0.6);
}

.table-modern {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
    margin: 1rem 0;
    animation: fadeIn 0.8s ease-out;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.table-modern th {
    background: var(--gradient-1);
    color: white;
    padding: 1.25rem 1rem;
    font-weight: 500;
    text-align: center;
    border: none;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.table-modern th:first-child {
    border-top-left-radius: 16px;
}

.table-modern th:last-child {
    border-top-right-radius: 16px;
}

.table-modern td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(251, 191, 36, 0.12);
    vertical-align: top;
    transition: all 0.3s ease;
    background: transparent;
}

.table-modern tbody tr {
    transition: all 0.3s ease;
}

.table-modern tbody tr:hover {
    background: rgba(251, 191, 36, 0.08);
}

.table-modern tbody tr:hover td {
    background: transparent;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.table-modern tbody tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}

.table-modern tbody tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

.detail-content {
    background: rgba(251, 191, 36, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: none;
    box-shadow: none;
    border: 1px solid rgba(251, 191, 36, 0.15);
    position: relative;
    overflow: hidden;
}

.detail-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-1);
    border-radius: 0 4px 4px 0;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-style: italic;
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    height: 20px;
    margin: 8px 0;
}

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

/* Utility Classes */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.w-full { width: 100%; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.h-16 { height: 4rem; }
.max-w-6xl { max-width: 72rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pb-8 { padding-bottom: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.mr-1 { margin-right: 0.25rem; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.text-white { color: rgb(255 255 255); }
.text-blue-500 { color: #f59e0b; }
.text-blue-600 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}
.text-blue-700 { color: #92400e; }
.text-gray-400 { color: rgb(156 163 175); }
.text-gray-500 { color: rgb(107 114 128); }
.text-gray-600 { color: #78350f; font-weight: 500; }
.text-gray-700 { color: #475569; }
.text-green-800 { color: #10b981; }
.text-purple-800 { color: #ea580c; }
.bg-blue-100 {
    background: rgba(251, 191, 36, 0.15);
    border: none;
}
.bg-blue-200 { background: rgba(251, 191, 36, 0.2); }
.bg-green-100 {
    background: rgba(16, 185, 129, 0.12);
    border: none;
}
.bg-purple-100 {
    background: rgba(234, 88, 12, 0.12);
    border: none;
}
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-blue-400 { --tw-gradient-from: rgb(96 165 250); --tw-gradient-to: rgb(96 165 250 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-blue-600 { --tw-gradient-to: rgb(37 99 235); }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.rounded-lg { border-radius: 12px; }
.rounded-full { border-radius: 9999px; }
.hover\:bg-blue-200:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}
.transition-colors {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hidden { display: none; }

/* Additional soft badges */
.inline-block.px-2.py-1.text-xs {
    border-radius: 20px;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: none;
}

/* Responsive Design */
@media (min-width: 640px) {
    .sm\:inline { display: inline; }
}

@media (min-width: 768px) {
    .md\:text-left { text-align: left; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:flex-row { flex-direction: row; }
    .lg\:text-left { text-align: left; }
    .lg\:justify-start { justify-content: flex-start; }
}

@media (max-width: 768px) {
    .profile-name {
        font-size: 2rem;
    }

    .profile-image {
        width: 180px;
        height: 240px;
        aspect-ratio: 3 / 4;
    }

    .header-section {
        padding: 2rem 1rem;
    }

    .info-section {
        padding: 1rem;
    }

    .table-modern {
        font-size: 0.875rem;
    }

    .table-modern th,
    .table-modern td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 640px) {
    .profile-name {
        font-size: 1.75rem;
    }

    .profile-image {
        width: 150px;
        height: 200px;
        aspect-ratio: 3 / 4;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .hidden { display: none; }
}/* Animation delays for staggered entrance */
.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
.info-card:nth-child(4) { animation-delay: 0.4s; }
.info-card:nth-child(5) { animation-delay: 0.5s; }
.info-card:nth-child(6) { animation-delay: 0.6s; }

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .profile-container {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }

    .profile-card,
    .info-card,
    .table-modern {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }

    .table-modern td {
        border-color: #374151;
    }

    .table-modern tbody tr:hover td {
        background: #374151;
    }

    .detail-content {
        background: #374151;
        color: #f9fafb;
    }

    .contact-item:hover {
        background: #374151;
    }
}

/* Share Buttons */
.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.share-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.share-button:hover::before {
    width: 300px;
    height: 300px;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.share-button:active {
    transform: translateY(-1px);
}

.share-button i,
.share-button span {
    position: relative;
    z-index: 1;
}

.share-link {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.share-embed {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
}

.share-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
}

.share-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.share-line {
    background: linear-gradient(135deg, #00b900 0%, #00a000 100%);
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal.active {
    opacity: 1;
    visibility: visible;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.share-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-modal.active .share-modal-content {
    transform: scale(1);
}

.share-modal-header {
    background: var(--gradient-1);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.share-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.share-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.share-modal-body {
    padding: 2rem;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.share-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.share-label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.share-input-group {
    position: relative;
}

.share-input,
.share-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    background: rgba(251, 191, 36, 0.05);
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.share-textarea {
    min-height: 120px;
    resize: vertical;
    font-size: 0.85rem;
}

.share-input:focus,
.share-textarea:focus {
    outline: none;
    border-color: rgba(251, 191, 36, 0.6);
    background: white;
}

.share-hint {
    color: #64748b;
    font-size: 0.875rem;
    font-style: italic;
}

.share-modal-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.share-copy-button {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.share-copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.share-copy-button:active {
    transform: translateY(0);
}

.share-preview {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed rgba(251, 191, 36, 0.3);
}

.share-preview-box {
    margin-top: 1rem;
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    overflow: hidden;
    background: #fffbeb;
}

.share-preview-box iframe {
    display: block;
    width: 100%;
    border: none;
}

/* Responsive Share Buttons */
@media (max-width: 768px) {
    .share-button {
        padding: 0.65rem 1.25rem;
        font-size: 0.875rem;
    }

    .share-button span {
        display: none;
    }

    .share-button i {
        margin-right: 0 !important;
    }

    .share-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .share-modal-header {
        padding: 1.25rem 1.5rem;
    }

    .share-modal-title {
        font-size: 1.25rem;
    }

    .share-modal-body {
        padding: 1.5rem;
    }

    .share-textarea {
        font-size: 0.75rem;
        min-height: 100px;
    }
}

@media (max-width: 640px) {
    .share-button {
        padding: 0.6rem 1rem;
    }
}

/* Print styles */
@media print {
    .profile-container {
        background: white;
    }

    .profile-card,
    .info-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    .header-section {
        background: var(--primary-color) !important;
        color: white !important;
    }

    .share-button,
    .share-modal {
        display: none !important;
    }
}
