
/* SoftSOP Help Center - Premium Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

#softsop-help-center-container {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    max-width: 1200px;
    margin: 40px auto;
    padding: 60px 40px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes popIn { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.animate-fade-in { animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-slide-down { animation: slideDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-fade-in-delay { animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards; opacity: 0; }
.animate-pop-in { animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) var(--delay) forwards; opacity: 0; }

/* Header */
.help-center-header {
    text-align: center;
    margin-bottom: 50px;
}

.help-center-header h1 {
    color: #28a745;
    font-size: 3.5em;
    margin: 0 0 15px 0;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.help-center-intro {
    color: #718096;
    font-size: 1.25em;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Search Bar */
.help-center-search {
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.search-wrapper {
    display: flex;
    width: 100%;
    max-width: 750px;
    background: #f7fafc;
    padding: 8px;
    border-radius: 16px;
    border: 2px solid #edf2f7;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: #28a745;
    background: #fff;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.1);
}

#softsop-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 20px;
    font-size: 1.1em;
    color: #2d3748;
    outline: none;
}

#softsop-search-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

#softsop-search-btn:hover {
    background: #218838;
    transform: scale(1.02);
}

/* Grid & Cards */
.help-center-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.help-card {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.help-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.06);
    border-color: #28a745;
}

.card-image {
    width: 120px;
    height: 120px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.help-card h3 {
    font-size: 1.5em;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.help-card p {
    font-size: 0.95em;
    color: #718096;
    margin-bottom: 25px;
    min-height: 45px;
}

/* Link Lists */
.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
}

.link-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.link-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.link-list li:hover:before { transform: translateX(4px); }

.link-list li a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    transition: color 0.2s ease;
}

.link-list li a:hover { color: #28a745; }

/* SOP Scroll List */
.sop-scroll-list {
    max-height: 180px;
    overflow-y: auto;
    width: 100%;
    padding-right: 8px;
}

.sop-scroll-list::-webkit-scrollbar { width: 4px; }
.sop-scroll-list::-webkit-scrollbar-track { background: #f7fafc; }
.sop-scroll-list::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 10px; }

/* Dynamic Content Area */
.help-center-content-wrapper {
    margin-top: 50px;
    padding: 50px;
    background: #f8fafc;
    border-radius: 24px;
    min-height: 300px;
    border: 1px solid #edf2f7;
    position: relative;
}

.help-center-content-wrapper.loading { opacity: 0.6; filter: grayscale(0.5); }

.content-placeholder {
    text-align: center;
    padding: 60px 0;
}

.placeholder-icon { font-size: 3em; margin-bottom: 20px; }
.content-placeholder p { color: #a0aec0; font-size: 1.1em; }

/* Content Body Styling */
.content-body h1 { color: #1a202c; font-size: 2.5em; margin-bottom: 30px; border-bottom: 3px solid #28a745; padding-bottom: 15px; }
.content-body h2 { color: #2d3748; font-size: 1.8em; margin: 40px 0 20px; }
.content-body h3 { color: #28a745; font-size: 1.4em; margin: 30px 0 15px; }
.content-body p { margin-bottom: 20px; line-height: 1.8; font-size: 1.05em; }
.content-body ul, .content-body ol { margin-bottom: 25px; padding-left: 25px; }
.content-body li { margin-bottom: 12px; }
.content-body strong { color: #1a202c; font-weight: 700; }
.content-body blockquote { border-left: 4px solid #28a745; padding: 15px 25px; background: #fff; font-style: italic; margin: 25px 0; border-radius: 0 12px 12px 0; }

/* Search Results */
.search-results-list { list-style: none; padding: 0; }
.search-results-list li { margin-bottom: 15px; background: #fff; padding: 15px 25px; border-radius: 12px; border: 1px solid #edf2f7; transition: all 0.2s ease; }
.search-results-list li:hover { border-color: #28a745; transform: translateX(5px); }
.search-result-link { color: #28a745; font-weight: 700; text-decoration: none; font-size: 1.1em; }

/* Back to Top */
.back-to-top-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
}

.back-to-top-btn.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top-btn:hover { background: #218838; transform: scale(1.1); }

/* Responsive */
@media (max-width: 1024px) {
    .help-center-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    #softsop-help-center-container { padding: 30px 20px; }
    .help-center-header h1 { font-size: 2.5em; }
    .help-center-grid { grid-template-columns: 1fr; }
    .help-center-content-wrapper { padding: 30px 20px; }
}
