/* ===== Sophia Skoufaki Website Styles ===== */
:root {
  --text-color: #333333;
  --link-color: #0073aa;
  --link-hover: #005177;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
  --footer-bg: #1a1a1a;
  --footer-text: #999999;
  --max-width: 1000px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  background: #ffffff;
}

a { color: var(--link-color); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--border-color);
  padding: 25px 0 20px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding h1 {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-color);
}

.site-branding p {
  font-size: 0.95rem;
  color: #666666;
  margin-top: 3px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--link-color);
}

.menu-toggle {
  display: none;
  background: #0073aa;
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 1rem;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 500;
}

/* ===== Page Title ===== */
.page-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 40px 0 10px;
  color: var(--text-color);
}

/* ===== Hero Image ===== */
.hero-image {
  text-align: center;
  margin: 30px 0 20px;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.photo-credit {
  text-align: center;
  font-size: 0.85rem;
  color: #666666;
  margin-top: 10px;
}

/* ===== Content Sections ===== */
.content-section {
  margin-bottom: 30px;
}

.content-section h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 35px 0 15px;
  color: var(--text-color);
}

.content-section h3 {
  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
  margin: 25px 0 12px;
  color: var(--text-color);
}

.content-section p {
  margin-bottom: 15px;
}

/* ===== Homepage Profile ===== */
.profile-area {
  display: flex;
  gap: 35px;
  margin: 30px 0 40px;
  align-items: flex-start;
}

.profile-photo img {
  max-width: 240px;
  width: 100%;
  height: auto;
  display: block;
}

.profile-links {
  flex: 1;
  padding-top: 5px;
}

.profile-links a {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.intro-text {
  margin-bottom: 25px;
}

/* ===== PhD Supervision Table ===== */
.phd-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 40px;
}

.phd-table tr {
  border-bottom: 1px solid var(--border-color);
}

.phd-table td {
  padding: 14px 0;
  vertical-align: top;
}

.phd-table td:first-child {
  width: 18%;
  font-weight: 500;
  padding-right: 15px;
}

.phd-table td:nth-child(2) {
  width: 62%;
  padding-right: 15px;
}

.phd-table td:last-child {
  width: 20%;
  text-align: right;
  white-space: nowrap;
}

/* ===== Publications ===== */
.pub-section {
  margin-bottom: 35px;
}

.pub-section h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 30px 0 18px;
  color: var(--text-color);
}

.pub-list {
  list-style: disc;
  margin-left: 22px;
  margin-bottom: 20px;
}

.pub-list > li {
  margin-bottom: 14px;
  line-height: 1.55;
}

.pub-list ul {
  list-style: disc;
  margin-left: 22px;
  margin-top: 6px;
}

.pub-list ul li {
  margin-bottom: 4px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 35px 0;
  margin-top: 60px;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
  }

  .main-nav {
    display: none;
    width: 100%;
    margin-top: 15px;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .profile-area {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-photo img {
    max-width: 200px;
    margin: 0 auto;
  }

  .phd-table td {
    display: block;
    width: 100% !important;
    text-align: left !important;
    padding: 4px 0;
    border-bottom: none;
  }

  .phd-table tr {
    display: block;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
  }

  .phd-table td:first-child {
    font-weight: 700;
  }

  .phd-table td:last-child {
    color: #666;
    font-style: italic;
  }
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #333333;
  color: #ffffff;
  padding: 15px 20px;
  font-size: 0.9rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1.5;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  max-width: 75%;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-shrink: 0;
}

.cookie-buttons a {
  color: #ffffff;
  text-decoration: underline;
  font-size: 0.9rem;
}

.cookie-buttons a:hover {
  color: #cccccc;
}

.cookie-accept {
  background: #00a32a;
  color: white;
  border: none;
  padding: 8px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cookie-accept:hover {
  background: #008a22;
}

.cookie-accept::before {
  content: "✓";
  font-weight: bold;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .cookie-text {
    max-width: 100%;
  }
}
