/* Lifted from page-role-selection.php <style> — do not rewrite */
.dreamers-role-selection {
    min-height: 100vh;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.role-selection-container {
    max-width: 1000px;
    width: 100%;
}

@media (max-width: 768px) {
	.role-selection-container {
		margin-top: 3em !important;
	}
}

.role-selection-header {
    text-align: center;
}

role-selection-header h1 {
	margin-bottom: 0;
}

.role-selection-title {
    font-family: var(--font-family-heading);
    font-size: clamp(2rem,6vw,5.5rem) !important;
    font-weight: 700;
    color: var(--brand-white);
    margin-bottom: 0.5em !important;
    letter-spacing: -0.02em;
	line-height: 0.9 !important;
}
@media (max-width: 768px) {
	.role-selection-title {
		margin: 0 !important;
		margin-bottom: 1em !important;
	}
}

.role-selection-title .highlight {
	background: var(--primary-400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    padding-right: 0.3em;
    margin-right: -0.1em;
    word-break: normal;
    white-space: nowrap;
}
.role-selection-subtitle {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.role-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .role-cards {
        grid-template-columns: 1fr;
    }
    
    .role-selection-title {
        font-size: 2rem !important;
    }
}

.role-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    text-decoration: none;
    color: var(--brand-white);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.role-card-creator::before {
    background: linear-gradient(90deg, #3bd3d3, #3BD3D3);
}

.role-card-employer::before {
    background: linear-gradient(90deg, #e6be69, #d4a42a);
}

.role-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.role-card:hover::before {
    opacity: 1;
}

.role-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.role-card-creator .role-card-icon {
    background: rgba(59, 211, 211, 0.15);
    color: var(--primary-400);
}

.role-card-employer .role-card-icon {
    background: rgba(230, 190, 105, 0.15);
    color: var(--gold-400);
}

.role-card-icon svg {
    width: 32px;
    height: 32px;
}

.role-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 12px;
}

@media (max-width: 768px) {
    .role-card-title {
        font-size: 1.25rem !important;
    }
}
.role-card-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin: 0 0 24px;
}

.role-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex-grow: 1;
}

.role-card-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-base);
}

.role-card-features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.role-card-creator .role-card-features li svg {
    color: var(--brand-white);
}

.role-card-employer .role-card-features li svg {
	color: var(--brand-white);
}

.role-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
}

.role-card-creator .role-card-cta {
    background: var(--primary-bright, var(--primary-400));
    color: #000 !important;
}

.role-card-creator:hover .role-card-cta {
    background: #00d4c8;
    color: #000 !important;
}

.role-card-employer .role-card-cta {
    background: var(--gold-400);
    color: #000 !important;
}

.role-card-employer:hover .role-card-cta {
    background: #e6be69;
    color: #000 !important;
}

.role-card-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.role-card:hover .role-card-cta svg {
    transform: translateX(4px);
}

.role-selection-footer {
    text-align: center;
    margin-top: 48px;
    color: rgba(255, 255, 255, 0.6);
}

.role-selection-footer a {
color: var(--brand-white) !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  border: 1px solid var(--midnight-end);
  border-radius: var(--radius-md);
  padding: 2px 8px !important;
  background: var(--gradient-midnight);
}

.role-selection-footer a:hover {
    color: var(--gold-600);
}
.role-selection-footer p {
    font-size: var(--font-size-base);
}


/* Dreamers Steps */
.dreamers-steps {
    text-align: center;
}

.dreamers-steps .container {
    max-width: 100%;
    padding: 0 clamp(0.5rem, 1.5vw, 1.5rem);
}

.dreamers-steps__heading {
    font-size: clamp(1.2rem,2vw,2.5rem) !important;
    font-weight: 700;
    color: var(--brand-white);
	opacity: 0.55;
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
}

.dreamers-steps__caption {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 1.25rem;
}

.dreamers-steps__row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.25rem;
}

/* Outer layer: provides the chevron border color */
.dreamers-steps__seg {
    background: color-mix(in srgb, var(--midnight-start) 35%, transparent) !important;
	border: 1px solid color-mix(in srgb, var(--midnight-end) 45%, transparent);
    padding: 1.5px;
    cursor: default;
}

.dreamers-steps__seg--first {
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
}

.dreamers-steps__seg--chevron {
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
}

/* Inner layer: dark fill, actual content */
.dreamers-steps__seg-inner {
	background: color-mix(in srgb, var(--midnight-start) 35%, transparent) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 3rem .4rem 3rem;
    height: 100%;
    box-sizing: border-box;
}

.dreamers-steps__seg--chevron .dreamers-steps__seg-inner {
    padding-left: 2.25rem;
}

.dreamers-steps__num {
    font-size: var(--font-size-xl) !important;
    font-weight: 800;
    color: var(--primary-400);
    line-height: 1;
}

.dreamers-steps__label {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.dreamers-steps__subheading {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

@media (max-width: 768px) {
    .dreamers-steps__heading {
        font-size: var(--font-size-lg);
		display: none;
    }
	.dreamers-steps__subheading {
		display: none;
	}

    .dreamers-steps__seg-inner {
        padding: 0.625rem 1.5rem 0.625rem 1rem;
    }

    .dreamers-steps__seg--chevron .dreamers-steps__seg-inner {
        padding-left: 1.75rem;
    }

    .dreamers-steps__num {
        font-size: 1.1rem;
    }

    .dreamers-steps__label {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .dreamers-steps__seg-inner {
        padding: 0.1rem 1.125rem 0.3rem 0.875rem;
    }

    .dreamers-steps__seg--chevron .dreamers-steps__seg-inner {
        padding-left: 1.5rem;
    }
}

/* ========================================
   LIGHT THEME OVERRIDES
   ======================================== */
body.light-theme .dreamers-role-selection {
    background: var(--bg-page);
}

body.light-theme .role-selection-title {
    color: var(--text-primary);
}

body.light-theme .role-selection-subtitle {
    color: var(--text-secondary);
}

body.light-theme .role-card {
    background: var(--bg-card);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

body.light-theme .role-card:hover {
    background: var(--bg-elevated);
    border-color: var(--border-default);
}

body.light-theme .role-card-description {
    color: var(--text-secondary);
}

body.light-theme .role-card-features li {
    color: var(--text-secondary);
}

body.light-theme .dreamers-steps__seg {
    background: var(--bg-card) !important;
    border-color: var(--border-subtle);
}

body.light-theme .dreamers-steps__seg-inner {
    background: var(--bg-card) !important;
}

body.light-theme .dreamers-steps__label {
    color: var(--text-primary);
}

body.light-theme .dreamers-steps__heading {
    color: var(--text-primary);
}

body.light-theme .dreamers-steps__subheading {
    color: var(--text-secondary);
}

body.light-theme .role-selection-footer {
    color: #fff;
}
