:root {
    /* related to and faqs component variables */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --border: #e2e8f0;
    --surface: #ffffff;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
    --surface-muted: #f4f6fb;
    --text-main: #0f172a;
    --text-muted: #64748b;
}

/* Unix Timestamp Converter Styles */
.timestamp-converter {
    margin-bottom: 3rem;
}

.current-epoch-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1.25rem;
    padding: 2rem 3rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

.epoch-display {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.epoch-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.epoch-value {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.4rem;
}

.epoch-unit {
    font-size: 1rem;
    opacity: 0.85;
}

.copy-epoch-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.copy-epoch-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.copy-epoch-btn:active {
    transform: translateY(0);
}

.converter-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.converter-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.converter-column {
    display: flex;
    flex-direction: column;
}

.converter-column:first-child {
    border-right: 1px solid #e5e7eb;
    padding-right: 2rem;
}

.converter-column:last-child {
    padding-left: 2rem;
}

.panel-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary, #1a1a1a);
}

.panel-description {
    font-size: 0.875rem;
    color: var(--text-muted, #666);
    margin: 0;
    line-height: 1.5;
}

.converter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.input-hint {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-muted, #666);
}

.input-with-actions {
    display: flex;
    gap: 0.5rem;
}

.timestamp-input,
.date-input,
.time-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.timestamp-input:focus,
.date-input:focus,
.time-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-action-btn {
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary, #1a1a1a);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.input-action-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.input-help {
    font-size: 0.75rem;
    color: var(--text-muted, #666);
    margin-top: 0.25rem;
}

.timezone-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timezone-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timezone-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.timestamp-format-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.format-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.format-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.format-badge {
    padding: 0.75rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.format-badge:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.format-badge.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.format-badge.active .badge-label,
.format-badge.active .badge-desc {
    color: white;
}

.badge-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.badge-desc {
    font-size: 0.75rem;
    color: var(--text-muted, #666);
}

.conversion-result {
    min-height: 200px;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-placeholder {
    text-align: center;
    color: var(--text-muted, #666);
}

.placeholder-icon {
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 0.875rem;
    margin: 0;
}

.result-content {
    width: 100%;
}

.result-main {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1rem;
}

.result-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    margin-bottom: 0.5rem;
}

.result-time {
    font-size: 1.125rem;
    color: var(--text-muted, #666);
    margin-bottom: 0.5rem;
}

.result-timestamp {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
    word-break: break-all;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.result-detail-label {
    font-size: 0.875rem;
    color: var(--text-muted, #666);
    font-weight: 500;
}

.result-detail-value {
    font-size: 0.875rem;
    color: var(--text-primary, #1a1a1a);
    font-weight: 600;
}

.converter-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: 2px solid #e5e7eb;
    background: white;
    color: var(--text-primary, #1a1a1a);
}

.action-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn.secondary {
    background: #f3f4f6;
}

.action-btn.secondary:hover {
    background: #e5e7eb;
}

/* Education Section */
.timestamp-education-section {
    padding: 3rem 0;
    margin-top: 3rem;
}

.education-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
}

.education-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--text-primary, #1a1a1a);
}

.education-card > p:first-of-type {
    font-size: 1.125rem;
    color: var(--text-muted, #666);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.education-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    color: var(--text-primary, #1a1a1a);
}

.education-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary, #1a1a1a);
    margin-bottom: 1rem;
}

.education-card a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

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

.timestamp-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.fact-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #e5e7eb;
}

.fact-number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.fact-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    margin-bottom: 0.25rem;
}

.fact-description {
    font-size: 0.875rem;
    color: var(--text-muted, #666);
}

.timestamp-examples-table {
    margin: 2rem 0;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.example-row {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
}

.example-row:last-child {
    border-bottom: none;
}

.example-timestamp {
    font-weight: 700;
    color: #667eea;
    font-size: 0.875rem;
}

.example-date {
    font-size: 0.875rem;
    color: var(--text-primary, #1a1a1a);
}

.example-desc {
    font-size: 0.75rem;
    color: var(--text-muted, #666);
    text-align: right;
}

.code-examples-table {
    margin: 2rem 0;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.code-example-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    align-items: start;
}

.code-example-row:last-child {
    border-bottom: none;
}

.code-example-row:hover {
    background: #f9fafb;
}

.code-example-lang {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    padding-top: 0.25rem;
}

.code-example-code {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.code-example-code code {
    font-size: 0.875rem;
    background: #f3f4f6;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: #667eea;
    border: 1px solid #e5e7eb;
    display: inline-block;
    word-break: break-all;
    line-height: 1.5;
}

.code-example-note {
    font-size: 0.75rem;
    color: var(--text-muted, #666);
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .converter-columns {
        grid-template-columns: 1fr;
    }
    
    .converter-column:first-child {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
    
    .converter-column:last-child {
        padding-left: 0;
    }
    
    .current-epoch-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .epoch-display {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .converter-card {
        padding: 1.5rem;
    }
    
    .epoch-value {
        font-size: 1.5rem;
    }
    
    .format-badges {
        grid-template-columns: 1fr;
    }
    
    .education-card {
        padding: 1.5rem;
    }
    
    .education-card h2 {
        font-size: 1.5rem;
    }
    
    .education-heading {
        font-size: 1.25rem;
    }
    
    .timestamp-facts-grid {
        grid-template-columns: 1fr;
    }
    
    .example-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .example-desc {
        text-align: left;
    }
    
    .code-example-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .code-example-lang {
        padding-top: 0;
    }
    
    .converter-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .current-epoch-banner {
        padding: 1rem;
    }
    
    .epoch-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .epoch-value {
        font-size: 1.25rem;
    }
    
    .converter-card {
        padding: 1rem;
    }
    
    .converter-column:first-child {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .input-with-actions {
        flex-direction: column;
    }
    
    .input-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.author-meta {display: flex;flex-wrap: wrap;justify-content: space-between;align-items: center;gap: 1rem;padding: 1rem 1.25rem;border-top: 1px solid #e9ecef;margin-top: 2rem;font-size: 0.875rem;color: #6c757d;}
.meta-author,.meta-updated {margin: 0;}
@media (max-width: 767px) {
    .author-meta {flex-direction: column;align-items: flex-start;gap: 0.5rem;padding: 0.75rem 1rem;}
}
