:root {
    --primary: #003087;
    --primary-dark: #001a4d;
    --accent: #c8a951;
    --accent-dark: #a8882e;
    --surface: #f5f7fc;
    --text: #1a1f36;
    --text-muted: #6b7280;
    --border: #e4e8f0;
    --white: #ffffff;
}

.experiences-page {
    padding-top: 70px;
    background: var(--surface);
    min-height: 100vh;
}

.experiences-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #002060 50%, #003580 100%);
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.experiences-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 169, 81, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.experiences-hero-icon {
    width: 56px;
    height: 56px;
    background: rgba(200, 169, 81, 0.15);
    border: 1px solid rgba(200, 169, 81, 0.3);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.experiences-hero-icon i {
    font-size: 1.4rem;
    color: var(--accent);
}

.experiences-hero-title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.experiences-hero-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

.exp-form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

.exp-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.exp-form-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--surface), #e4e8f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
}

.exp-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.exp-form-hint {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.exp-form-textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.88rem;
    color: var(--text);
    resize: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.6;
}

.exp-form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.1);
}

.exp-form-textarea::placeholder {
    color: #9ca3af;
}

.exp-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.exp-form-photo-group {
    display: flex;
    gap: 6px;
}

.exp-form-photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.exp-form-photo-btn:hover {
    background: #e8eaf0;
    color: var(--primary);
}

.exp-form-photo-name {
    font-size: 0.72rem;
    color: var(--text-muted);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exp-form-submit {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.exp-form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 48, 135, 0.25);
}

.exp-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.exp-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.exp-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}

.exp-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.exp-card-header i {
    font-size: 1rem;
    opacity: 0.7;
}

.exp-card-content {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 0.75rem;
}

.exp-card-photo {
    border-radius: 12px;
    max-height: 300px;
    object-fit: cover;
    width: 100%;
    margin-bottom: 0.75rem;
}

.exp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f1f4;
}

.exp-reaction-bar {
    padding-bottom: 0.5rem;
}

.exp-reaction-summary {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.exp-react-wrapper {
    position: relative;
}

.exp-react-trigger {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.exp-react-trigger:hover {
    background: rgba(0, 48, 135, 0.06);
    color: var(--primary);
}

.exp-emoji-picker {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 6px 10px;
    display: none;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    white-space: nowrap;
}

.exp-emoji-picker.show {
    display: flex;
}

.exp-emoji {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50%;
    transition: transform 0.15s ease, background 0.15s ease;
    line-height: 1;
}

.exp-emoji:hover {
    transform: scale(1.35);
    background: var(--surface);
}

.exp-reply-toggle {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: var(--surface);
    border-radius: 20px;
    padding: 5px 12px;
    transition: all 0.2s;
}

.exp-reply-toggle:hover {
    color: var(--primary);
    background: rgba(0, 48, 135, 0.06);
}

.exp-replies {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f1f4;
}

.exp-reply-item {
    background: var(--surface);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--border);
}

.exp-reply-item-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.exp-reply-item-content {
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.exp-reply-to-btn {
    background: none;
    border: none;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 0;
    margin-top: 4px;
    transition: color 0.2s;
}

.exp-reply-to-btn:hover {
    color: var(--primary);
}

.exp-reply-children {
    margin-top: 0.5rem;
    margin-left: 1rem;
    padding-left: 0.75rem;
    border-left: 2px solid #e4e8f0;
}

.exp-reply-child {
    padding: 0.5rem 0;
}

.exp-reply-child + .exp-reply-child {
    border-top: 1px solid #f0f1f4;
}

.exp-reply-to-form-wrapper {
    margin-top: 0.5rem;
    margin-left: 1rem;
}

.exp-reply-form {
    display: flex;
    gap: 8px;
    margin-top: 0.75rem;
}

.exp-reply-form input {
    flex: 1;
    border-radius: 24px;
    font-size: 0.8rem;
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.2s;
}

.exp-reply-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.1);
    background: var(--white);
}

.exp-reply-form button {
    border-radius: 24px;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    transition: all 0.2s;
}

.exp-reply-form button:hover {
    background: var(--primary-dark);
}

.exp-load-more-btn {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 10px 24px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
}

.exp-load-more-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 48, 135, 0.2);
}

.exp-empty-icon {
    width: 72px;
    height: 72px;
    background: var(--surface);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.exp-empty-icon i {
    font-size: 2rem;
    color: var(--text-muted);
    opacity: 0.4;
}

@media (max-width: 767px) {
    .experiences-hero {
        padding: 2rem 0 1.5rem;
    }

    .experiences-hero-title {
        font-size: 1.4rem;
    }

    .experiences-hero-subtitle {
        font-size: 0.8rem;
    }

    .exp-form-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .exp-card {
        padding: 1rem 1.15rem;
        border-radius: 12px;
    }

    .exp-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .exp-emoji-picker {
        left: 0;
        right: auto;
    }

    .exp-form-actions {
        flex-wrap: wrap;
    }

    .exp-form-submit {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }
}
