/* Component Styles - Cards, Buttons, Badges, etc. */

/* Module Cards */
.module-card {
    background: white;
    border: 1px solid var(--light-gray);
    transition: all var(--transition-slow);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out backwards;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent-gold);
    transition: height var(--transition-slow);
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-subtle);
}

.module-card:hover::before {
    height: 100%;
}

.module-card:nth-child(1) { animation-delay: 0.8s; }
.module-card:nth-child(2) { animation-delay: 0.9s; }
.module-card:nth-child(3) { animation-delay: 1s; }
.module-card:nth-child(4) { animation-delay: 1.1s; }
.module-card:nth-child(5) { animation-delay: 1.2s; }
.module-card:nth-child(6) { animation-delay: 1.3s; }

.module-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--light-gray);
}

.module-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.module-subtitle {
    font-size: 1.05rem;
    color: var(--navy);
    font-style: italic;
    line-height: 1.6;
    opacity: 0.85;
}

.module-body {
    padding: var(--spacing-xl);
}

/* Tech Cards */
.tech-card {
    background: white;
    border: 1px solid var(--light-gray);
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-gold);
    transition: height var(--transition-normal);
}

.tech-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-subtle);
}

.tech-card:hover::before {
    height: 100%;
}

.tech-card.coming-soon {
    opacity: 0.7;
}

.tech-card.coming-soon::after {
    content: 'Coming Soon';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--muted-gold);
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.tech-card.locked {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
}

.lock-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(212, 175, 55, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: var(--z-dropdown);
}

.tech-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.tech-card-preview {
    font-size: 1rem;
    color: var(--navy);
    line-height: 1.7;
    opacity: 0.85;
}

/* Badges */
.risk-badge {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
    color: var(--navy);
    font-weight: 500;
}

.coming-soon-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--accent-gold);
    color: white;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-left: 0.5rem;
    border-radius: var(--radius-sm);
}

.tool-category {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.tool-category.calculator {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.3);
    color: #2c3e50;
}

.tool-category.assessment {
    background: rgba(155, 89, 182, 0.1);
    border-color: rgba(155, 89, 182, 0.3);
    color: #6c3483;
}

.tool-category.template {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
    color: #1e8449;
}

/* Buttons */
.tech-return-btn {
    padding: 0.65rem 1.25rem;
    background: white;
    border: 1px solid var(--border-subtle);
    color: var(--navy);
    text-decoration: none;
    font-size: 1rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    font-weight: 500;
    display: inline-block;
}

.tech-return-btn:hover {
    background: var(--accent-gold);
    color: white;
    border-color: var(--accent-gold);
}

/* Technique Cards */
.technique-card {
    background: white;
    border: 1px solid var(--light-gray);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.technique-card:hover {
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-md);
}

.technique-name {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.technique-desc {
    font-size: 1rem;
    color: var(--navy);
    line-height: 1.7;
    opacity: 0.85;
}

/* Success Metrics Cards */
.metric-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--border-subtle);
}

.metric-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--navy);
}

/* Intro Section */
.intro-section {
    margin-bottom: var(--spacing-3xl);
    padding: 2.5rem;
    background: white;
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--accent-gold);
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.intro-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--navy);
}

/* Framework Sections */
.framework-section {
    margin-bottom: 1.5rem;
}

.framework-content {
    font-size: 1.05rem;
    color: var(--navy);
    line-height: 1.8;
}

.framework-list {
    list-style: none;
    padding-left: 0;
}

.framework-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--navy);
}

.framework-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: 600;
}

/* Breadcrumb */
.breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: 2rem;
    opacity: 0.75;
}

.breadcrumb a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--accent-gold);
}

/* Inline Links */
.inline-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.95em;
    margin-left: 0.5rem;
    transition: color var(--transition-fast);
    font-family: var(--font-mono);
    font-weight: 500;
}

.inline-link:hover {
    color: var(--navy);
    text-decoration: underline;
}

/* Roadmap table */
.roadmap-table-container {
    overflow-x: auto;
    background: white;
    border: 1px solid var(--light-gray);
    box-shadow: 0 4px 12px rgba(10, 22, 40, 0.08);
}

.roadmap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.roadmap-table thead {
    background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
    color: var(--warm-white);
}

.roadmap-table th {
    padding: 1.5rem 1.25rem;
    text-align: left;
    font-weight: 500;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.roadmap-table th:last-child {
    border-right: none;
}

.roadmap-table tbody tr {
    border-bottom: 1px solid var(--light-gray);
    transition: background 0.2s ease;
}

.roadmap-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.03);
}

.roadmap-table tbody tr:last-child {
    border-bottom: none;
}

.roadmap-table td {
    padding: 1.25rem 1rem;
    vertical-align: top;
    border-right: 1px solid var(--light-gray);
}

.roadmap-table td:last-child {
    border-right: none;
}

/* Hide Linked Modules column in tools/templates tables (hard to maintain) */
.roadmap-table th:last-child,
.roadmap-table td:last-child {
    display: none;
}

.tool-number {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 0.85rem;
}

.tool-name {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    line-height: 1.4;
}

.tool-description {
    color: var(--navy);
    line-height: 1.7;
    font-size: 1rem;
}

.tool-inputs,
.tool-outputs,
.tool-modules {
    font-size: 0.95rem;
    color: var(--navy);
    line-height: 1.8;
}

.tool-inputs ul,
.tool-outputs ul,
.tool-modules ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.tool-inputs li,
.tool-outputs li,
.tool-modules li {
    margin-bottom: 0.5rem;
}

.roadmap-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid var(--accent-gold);
    font-size: 1rem;
    color: var(--deep-blue);
    line-height: 1.7;
}
