/* Dune Theme - Arrakis Desert Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: monospace, 'Courier New', Courier;
    font-size: 16px;
    line-height: 1.5;
    color: #e8dcc4;
    background-image: url('pics/dune.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #0f0e0c;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 14, 12, 0.85);
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Email obfuscation - reverse display */
.email {
    unicode-bidi: bidi-override;
    direction: rtl;
}

.email::before {
    content: attr(data-domain);
}

.email::after {
    content: "@" attr(data-user);
}

/* Name/Title */
h1.name {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 20px;
}

h1.name a {
    color: #c9a227;
    text-decoration: none;
}

h1.name a:hover {
    color: #e8b923;
}

/* Affiliation block */
.affiliation {
    margin-bottom: 30px;
    line-height: 1.8;
}

.affiliation a {
    color: #d4a574;
    text-decoration: none;
}

.affiliation a:hover {
    color: #e8b88a;
    text-decoration: underline;
}

/* Social icons */
.affiliation a i.fab {
    font-size: 1.4em;
    vertical-align: middle;
}

/* Abbreviations with tooltip */
abbr {
    text-decoration: underline dotted #c9a227;
    cursor: help;
    position: relative;
}

abbr::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1915;
    color: #e8dcc4;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #c9a227;
    font-size: 0.85em;
    max-width: 90vw;
    min-width: 120px;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    z-index: 100;
}

abbr:hover::after,
abbr.active::after {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 600px) {
  abbr::after {
    font-size: 1em;
    left: 0;
    right: 0;
    transform: none;
    margin: 0 auto;
    max-width: 98vw;
  }
}

/* Section headings */
h2 {
    font-size: 1.2em;
    font-weight: bold;
    color: #c9a227;
    margin-top: 30px;
    margin-bottom: 15px;
}

h2 a {
    color: #c9a227;
    text-decoration: none;
}

h2 a:hover {
    text-decoration: underline;
}

/* Collapsible sections */
details {
    margin-top: 15px;
    margin-bottom: 5px;
}

details summary {
    font-size: 1.2em;
    font-weight: bold;
    color: #c9a227;
    cursor: pointer;
    list-style: none;
    display: inline;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::before {
    content: "► ";
    color: #d4883a;
}

details[open] summary::before {
    content: "▼ ";
}

details summary:hover {
    text-decoration: underline;
}

.details-content {
    margin-top: 15px;
    margin-left: 20px;
    padding-left: 15px;
    border-left: 1px solid #3d3428;
}

h3 {
    font-size: 1em;
    font-weight: bold;
    color: #d4883a;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Paragraphs */
p {
    margin-bottom: 15px;
    text-align: left;
}

/* Links */
a {
    color: #d4a574;
    text-decoration: none;
}

a:hover {
    color: #e8c49a;
    text-decoration: underline;
}

/* Strong/Bold */
strong {
    color: #fff;
    font-weight: bold;
}

/* Lists */
ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 15px;
}

ul li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

ul li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: #d4883a;
    font-size: 0.7em;
}

/* Submission history for papers */
.submission-history {
    color: #888;
    font-size: 0.9em;
    font-style: italic;
}

/* Legend box for submission symbols */
.legend-box {
    display: block;
    padding: 10px 14px;
    border: 1px solid #3d3428;
    font-size: 0.85em;
    color: #a89a82;
    margin: 10px 0 20px 0;
    line-height: 1.6;
}

.legend-symbols {
    text-align: center;
    margin-top: 8px;
}

/* Paper metadata (authors, notes) */
.paper-meta {
    color: #a89a82;
    font-size: 0.9em;
}

.paper-meta strong {
    color: #c9a227;
}

/* Paper title */
.paper-title {
    color: #fff;
}

.rej { color: #8b4513; }  /* dark sand for reject */
.maj { color: #d4883a; }  /* spice orange for major revision */
.min { color: #c9a227; }  /* spice gold for minor revision */
.acc { color: #44aa44; }  /* green for accept (academic standard) */

/* Award highlight */
.award {
    color: #4a9eff;
    font-weight: bold;
}

/* Related papers (conf + journal extension) */
ul.related-papers {
    margin-bottom: 5px;
}

ul.related-papers li.extended {
    color: #ccc;
    margin-top: -5px;
    padding-left: 30px;
}

ul.related-papers li.extended::before {
    content: "";
}

/* Sections */
section {
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
    }

    h1.name {
        font-size: 1.4em;
    }

    body {
        font-size: 14px;
    }
}

/* Print styles */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    a {
        color: #000;
    }

    h1.name a,
    h2,
    h2 a {
        color: #000;
    }
}
