/* ============================================
   HAXD 2026 - Page-Specific Styles
   Extracted from inline styles for better maintainability
   ============================================ */

/* ============================================
   INDEX PAGE STYLES
   ============================================ */

/* Hero with background image */
.hero-with-image {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/valencia_general_4.png');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: -1;
}

/* Floating image component */
.floating-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.floating-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Image divider parallax section */
.image-divider {
    height: 300px;
    background-image: url('../images/valencia_general_2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.image-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

@media (max-width: 768px) {
    .image-divider {
        height: 200px;
        background-attachment: scroll;
    }
}

/* IEEE banner styling */
.ieee-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.25rem;
    border-radius: 9999px;
    border: 2px solid var(--primary-color);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.08), 0 0.125rem 0.5rem rgba(0,0,0,0.06);
    font-weight: 600;
    line-height: 1.1;
    z-index: 2;
}

.hero-with-image .ieee-banner {
    background: rgba(255,255,255,0.97);
}

.ieee-banner img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.05));
}

.ieee-banner .label {
    letter-spacing: 0.01em;
}

@media (min-width: 992px) {
    .ieee-banner {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .ieee-banner img {
        height: 32px;
    }
}

/* Theme highlight styling */
.theme-highlight {
    text-align: center;
    padding: 2rem;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    margin-top: 1rem;
}

.theme-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000;
    line-height: 1.5;
    margin: 0;
}

.theme-text .highlight {
    color: #000000;
    display: block;
}

/* Theme container */
.theme-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   CFP PAGE STYLES
   ============================================ */

/* Topic cards */
.topic-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.topic-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.topic-icon {
    font-size: 1.8rem;
    margin-right: 0.8rem;
}

.topic-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.topic-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.topic-list li {
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #495057;
}

.topic-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Text light custom - black text for readability */
.text-light-custom {
    color: #000000 !important;
    line-height: 1.7;
}

/* ============================================
   CFPS (POSTERS) PAGE STYLES
   ============================================ */

/* Guideline items */
.guideline-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.guideline-item:last-child {
    border-bottom: none;
}

/* Warning and info boxes */
.warning-box {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.info-box {
    background: #e8f4fd;
    border-left: 4px solid #0d6efd;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* ============================================
   SHARED COMPONENT STYLES
   ============================================ */

/* Hover card animation */
.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(2,6,23,.12);
}

/* Note callout (if not in main.css or needs override) */
.note-callout {
    border-left: 4px solid var(--secondary-color);
    background: #ecfeff;
    border: 1px solid #bae6fd;
    border-left-color: var(--secondary-color);
    border-radius: 12px;
    padding: 1rem;
}

/* Dates table */
.dates-table thead th {
    background: #f8fafc;
    font-weight: 700;
}

.dates-table td,
.dates-table th {
    vertical-align: middle;
}

/* ============================================
   CF-WORKSHOPS PAGE STYLES
   ============================================ */

/* Icon list items */
.icon-li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

/* Chips/tags */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Track cards */
.track-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
    border-top: 4px solid var(--primary-color);
}

.track-card h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.track-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.track-card li {
    padding: 0.3rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.track-card li i {
    color: var(--primary-color);
    margin-top: 0.2rem;
}

/* ============================================
   COMMITTEE PAGE STYLES
   ============================================ */

/* Committee sections */
.committee-section {
    margin-bottom: 3rem;
}

.committee-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.member-list {
    list-style: none;
    padding: 0;
}

.member-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.member-item:last-child {
    border-bottom: none;
}

.member-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.member-affiliation {
    color: #6c757d;
    font-size: 0.95rem;
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

/* Contact cards */
.contact-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.contact-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-card h4 {
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* ============================================
   KEYNOTES PAGE STYLES
   ============================================ */

/* Keynote placeholder */
.keynote-placeholder {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
}

.keynote-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Speaker photo styles */
.speaker-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    border: 4px solid var(--primary-color);
}

/* ============================================
   REGISTRATION PAGE STYLES
   ============================================ */

/* Fees table */
.fees-table th {
    font-weight: 700;
}

.fees-table td,
.fees-table th {
    vertical-align: middle;
}

/* Included items list */
.included-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.included-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

/* ============================================
   SUBMISSION PAGE STYLES
   ============================================ */

/* Submission steps list */
.submission-steps {
    list-style: none;
    padding-left: 0;
}

.submission-steps li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.submission-steps li:last-child {
    border-bottom: none;
}

/* ============================================
   VENUE PAGE STYLES
   ============================================ */

/* Venue images */
.venue-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 1.5rem;
}

.venue-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.venue-image:hover img {
    transform: scale(1.02);
}

/* Venue info cards */
.venue-info-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
}

.venue-info-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.venue-info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ============================================
   VERSIONS/PREVIOUS EDITIONS PAGE STYLES
   ============================================ */

/* Edition card */
.edition-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(2,6,23,.07);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}

.edition-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(2,6,23,.12);
}

.edition-cover {
    position: relative;
    border-bottom: 1px solid #eef2f7;
}

.edition-cover .ratio > img {
    object-fit: cover;
    transition: transform .5s ease;
}

.edition-card:hover .edition-cover .ratio > img {
    transform: scale(1.05);
}

.edition-cover-img {
    object-fit: cover;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.edition-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.65), rgba(0,0,0,.0) 60%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: .75rem .75rem 1rem;
}

.edition-overlay .year {
    color: #fff;
    font-weight: 800;
    letter-spacing: .02em;
    text-shadow: 0 2px 10px rgba(30, 58, 138, 0.35);
}

.badge-soft {
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
    font-weight: 700;
}

.badge-archive {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-weight: 600;
}

.edition-ctas {
    gap: .5rem;
}


/* =============================================================================
   KEYNOTE SPEAKERS
   ============================================================================= */
.keynote-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid rgba(0,0,0,.06);
}
.keynote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.keynote-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
}
.keynote-body { padding: 1.5rem; }
.keynote-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2C1810;
  margin-bottom: .25rem;
}
.keynote-title {
  font-size: .9rem;
  color: #B8510D;
  font-weight: 600;
  margin-bottom: .15rem;
}
.keynote-affil {
  font-size: .85rem;
  color: #666;
  margin-bottom: .75rem;
}
.keynote-talk {
  background: rgba(184, 81, 13, .06);
  border-left: 3px solid #B8510D;
  padding: .75rem 1rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: .75rem;
}
.keynote-talk-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #B8510D;
  margin-bottom: .2rem;
}
.keynote-talk-title {
  font-size: .95rem;
  font-weight: 600;
  color: #2C1810;
  font-style: italic;
}
.keynote-bio {
  font-size: .85rem;
  color: #555;
  line-height: 1.6;
}
.keynote-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(184, 81, 13, .1);
  color: #B8510D;
}
.keynote-btns {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
}
.keynote-btns .btn {
  flex: 1;
  font-size: .82rem;
  font-weight: 600;
  padding: .45rem .75rem;
  border-radius: 8px;
}
.btn-bio {
  background: rgba(184, 81, 13, .1);
  color: #B8510D;
  border: 1px solid rgba(184, 81, 13, .2);
}
.btn-bio:hover {
  background: #B8510D;
  color: #fff;
}
.btn-abstract {
  background: rgba(44, 24, 16, .06);
  color: #2C1810;
  border: 1px solid rgba(44, 24, 16, .15);
}
.btn-abstract:hover {
  background: #2C1810;
  color: #fff;
}

/* Dark mode */
[data-theme="dark"] .keynote-card {
  background: #1a1a2e;
  border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .keynote-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
[data-theme="dark"] .keynote-name { color: #f3f4f6; }
[data-theme="dark"] .keynote-title { color: #D4AF37; }
[data-theme="dark"] .keynote-affil { color: #9ca3af; }
[data-theme="dark"] .keynote-talk {
  background: rgba(184, 81, 13, .1);
  border-left-color: #D4AF37;
}
[data-theme="dark"] .keynote-talk-label { color: #D4AF37; }
[data-theme="dark"] .keynote-talk-title { color: #e5e7eb; }
[data-theme="dark"] .keynote-bio { color: #9ca3af; }
[data-theme="dark"] .keynote-badge {
  background: rgba(212, 175, 55, .15);
  color: #D4AF37;
}
[data-theme="dark"] .btn-bio {
  background: rgba(212, 175, 55, .12);
  color: #D4AF37;
  border-color: rgba(212, 175, 55, .25);
}
[data-theme="dark"] .btn-bio:hover {
  background: #D4AF37;
  color: #1a1a2e;
}
[data-theme="dark"] .btn-abstract {
  background: rgba(255,255,255,.06);
  color: #e5e7eb;
  border-color: rgba(255,255,255,.15);
}
[data-theme="dark"] .btn-abstract:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}
@media (max-width: 768px) {
  .keynote-photo { height: 260px; }
}
