/* SPARQL Help Page - W3C Primer Inspired Minimalistic Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    border-bottom: 2px solid #005a9c;
    padding: 20px 0;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.2em;
    color: #005a9c;
    font-weight: normal;
    margin-bottom: 5px;
}

header p {
    font-size: 1.1em;
    color: #666;
}

.content {
    padding: 0;
}

.intro {
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #005a9c;
    margin-bottom: 30px;
}

.intro h2 {
    color: #005a9c;
    margin-bottom: 10px;
    font-size: 1.5em;
    font-weight: normal;
}

.endpoint-info {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.query-section {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.query-section:hover {
    border-color: #005a9c;
}

.query-header {
    background: #f5f5f5;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.query-header:hover {
    background: #e8e8e8;
}

.query-header h3 {
    color: #005a9c;
    font-size: 1.1em;
    font-weight: normal;
}

.query-body {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background: #fff;
}

.query-body.expanded {
    max-height: 2000px;
    padding: 20px;
}

.query-code {
    background: #f5f5f5;
    color: #000;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.query-code.flash-copy {
    animation: flashBackground 0.6s ease;
}

@keyframes flashBackground {
    0% { background: #f5f5f5; }
    50% { background: #d4edda; }
    100% { background: #f5f5f5; }
}

.copy-btn {
    background: #005a9c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #003f6e;
}

.copy-btn.copied {
    background: #28a745;
}

.toggle-icon {
    font-size: 1em;
    transition: transform 0.3s;
    color: #666;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.loading {
    text-align: center;
    padding: 60px;
    color: #666;
    font-size: 1.2em;
}

.error {
    background: #ffe8e8;
    color: #c00;
    padding: 20px;
    border: 1px solid #c00;
    border-radius: 4px;
}

.expand-all {
    background: #005a9c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    margin-bottom: 20px;
    transition: background 0.2s;
}

.expand-all:hover {
    background: #003f6e;
}

footer {
    border-top: 1px solid #ddd;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    color: #666;
    font-size: 0.95em;
}

footer a {
    color: #005a9c;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* SPARQL syntax highlighting - subtle colors for minimalistic style */
.sparql-keyword { 
    color: #005a9c; 
    font-weight: bold;
}

.sparql-prefix { 
    color: #800080; 
}

.sparql-uri { 
    color: #808000; 
}

.sparql-variable { 
    color: #008080; 
}

.sparql-comment { 
    color: #008000; 
    font-style: italic; 
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.toast-error {
    background: rgba(192, 0, 0, 0.9);
}
