/* ============================================
   HOMEPAGE SECTIONS - Features, Supported, Privacy, FAQ, Checks
   ============================================ */

/* Features Section */
.features-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

html[data-theme="light"] .feature {
    background: rgba(0, 0, 0, 0.02);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature p {
    opacity: 0.8;
}

/* Supported Section */
.supported-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 4rem 0;
    position: relative;
}

.supported-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0cfff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.supported-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.supported-category {
    background: rgba(53, 132, 228, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(53, 132, 228, 0.3);
    transition: var(--transition);
}

.supported-category:hover {
    transform: translateY(-5px);
    border-color: rgba(53, 132, 228, 0.5);
    box-shadow: 0 8px 24px rgba(53, 132, 228, 0.2);
}

.supported-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.supported-list li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.supported-list li:last-child {
    border-bottom: none;
}

.supported-list li:hover {
    padding-left: 0.5rem;
    color: var(--primary-color);
}

/* OS Installation Tooltips */
.os-item {
    position: relative;
    cursor: pointer;
}

.install-tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    width: max-content;
    max-width: 500px;
}

.os-item:hover .install-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(10px);
    pointer-events: auto;
}

.install-tab {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(53, 132, 228, 0.3);
    position: relative;
}

.install-tab::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-right-color: var(--primary-color);
    margin-right: 0;
}

.install-tab::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: #2a2a2a;
    margin-right: 2px;
}

.install-tab h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(53, 132, 228, 0.3);
    padding-bottom: 0.5rem;
}

.install-variant {
    margin-bottom: 1.5rem;
}

.install-variant:last-child {
    margin-bottom: 0;
}

.variant-title {
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.install-tab code {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #4af;
    border: 1px solid rgba(74, 170, 255, 0.3);
    margin: 0.5rem 0;
    white-space: nowrap;
    overflow-x: auto;
}

.run-instruction {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0 0 0;
    font-style: italic;
}

.run-instruction code {
    display: inline;
    padding: 0.2rem 0.5rem;
    font-size: 0.85rem;
    margin: 0;
}

/* Privacy Section */
.privacy-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 4rem 0;
    position: relative;
}

html[data-theme="light"] .privacy-section {
    background: linear-gradient(135deg, #f6f5f4 0%, #e5e3df 100%);
}

.privacy-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.privacy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.privacy-card {
    background: rgba(53, 132, 228, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(53, 132, 228, 0.3);
    transition: var(--transition);
}

html[data-theme="light"] .privacy-card {
    background: #ffffff;
    border: 1px solid rgba(28, 113, 216, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.privacy-card:hover {
    transform: translateY(-5px);
    border-color: rgba(53, 132, 228, 0.5);
    box-shadow: 0 8px 24px rgba(53, 132, 228, 0.2);
}

html[data-theme="light"] .privacy-card:hover {
    box-shadow: 0 8px 24px rgba(28, 113, 216, 0.15);
    border-color: rgba(28, 113, 216, 0.4);
}

.privacy-card--featured {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.privacy-ironseal-logo-wrap {
    margin-bottom: 1.5rem;
}

.ironseal-link {
    display: inline-block;
    transition: var(--transition);
}

.ironseal-link:hover {
    transform: scale(1.05);
}

.ironseal-logo {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.ironseal-fallback {
    font-size: 6rem;
}

.privacy-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.privacy-card-desc {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.privacy-learn-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.privacy-learn-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.privacy-demo {
    background: rgba(53, 132, 228, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(53, 132, 228, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

html[data-theme="light"] .privacy-demo {
    background: #ffffff;
    border: 1px solid rgba(28, 113, 216, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.privacy-switch-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.privacy-switch-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.privacy-switch-input {
    position: relative;
    width: 60px;
    height: 30px;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

html[data-theme="light"] .privacy-switch-input {
    background: rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(0, 0, 0, 0.25);
}

.privacy-switch-input:checked {
    background: var(--primary-color);
    border-color: var(--secondary-color);
}

html[data-theme="light"] .privacy-switch-input:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.privacy-switch-input::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.privacy-switch-input:checked::before {
    transform: translateX(30px);
}

.privacy-switch-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1rem;
}

.switch-text-off,
.switch-text-on {
    transition: var(--transition);
    opacity: 0.5;
}

.privacy-switch-input:not(:checked) ~ .privacy-switch-text .switch-text-off {
    opacity: 1;
    color: var(--text-color);
}

.privacy-switch-input:checked ~ .privacy-switch-text .switch-text-on {
    opacity: 1;
    color: var(--primary-color);
}

.privacy-json-viewer {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: auto;
    max-height: 500px;
}

html[data-theme="light"] .privacy-json-viewer {
    background: #f6f5f4;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.json-display {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    color: #4af;
    margin: 0;
    white-space: pre;
    line-height: 1.6;
}

html[data-theme="light"] .json-display {
    color: #1c71d8;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(53, 132, 228, 0.2);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    list-style: none;
    transition: var(--transition);
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-color);
}

.faq-chevron {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item[open] .faq-chevron {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    opacity: 0.9;
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}

/* Checks/Test Report Flow Section */
.checks-section {
    background: var(--bg-color);
    padding: 4rem 0;
}

.checks-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.check-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.check-step-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.check-step-icon {
    font-size: 1.5rem;
}

.check-step--fail .check-step-icon {
    color: var(--error-color);
}

.check-step--troubleshoot .check-step-icon {
    color: #f39c12;
}

.check-step--pass .check-step-icon {
    color: var(--success-color);
}

.check-step-connector {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.check-step-caption {
    text-align: center;
    opacity: 0.8;
    max-width: 280px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.wiki-mockup {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .wiki-mockup {
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.wiki-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .wiki-header {
    background: #f6f5f4;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.wiki-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

html[data-theme="light"] .wiki-dot {
    background: rgba(0, 0, 0, 0.2);
}

.wiki-url {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
    font-family: monospace;
}

.wiki-body {
    padding: 1.5rem;
}

.wiki-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.wiki-checks {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wiki-check-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wiki-check-line:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wiki-check-line:first-child {
    padding-top: 0;
}

.wiki-check-line .pass {
    color: var(--success-color);
    font-weight: bold;
}

.wiki-check-line .fail {
    color: var(--error-color);
    font-weight: bold;
}

.wiki-steps {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.wiki-steps li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.wiki-steps code {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #4af;
}

.wiki-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.wiki-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Flavors Section */
.flavors-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

.flavors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.flavor-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}

.flavor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(53, 132, 228, 0.2);
    border-color: var(--primary-color);
}

.flavor-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.flavor-desc {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.flavor-video-wrapper {
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(53, 132, 228, 0.1) 0%, rgba(28, 113, 216, 0.05) 100%);
}

.video-play-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.video-placeholder-label {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* OS Picker Section */
.os-picker-section {
    background: var(--bg-color);
    padding: 4rem 0;
}

.os-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.os-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}

html[data-theme="light"] .os-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.os-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(53, 132, 228, 0.2);
    border-color: var(--primary-color);
}

html[data-theme="light"] .os-card:hover {
    box-shadow: 0 8px 24px rgba(28, 113, 216, 0.15);
}

.os-logo-link {
    display: block;
    margin-bottom: 1.5rem;
}

.os-logo-box {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
}

html[data-theme="light"] .os-logo-box {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.os-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.os-logo-fallback {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
}

.os-name {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.os-desc {
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.os-install-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.25rem;
}

html[data-theme="light"] .os-install-box {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.install-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.install-code-block {
    margin-bottom: 1rem;
}

.install-code-block:last-child {
    margin-bottom: 0;
}

.install-comment {
    font-size: 0.85rem;
    opacity: 0.6;
    font-family: monospace;
}

html[data-theme="light"] .install-comment {
    opacity: 0.5;
}

.install-code {
    display: block;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.75rem;
    border-radius: 4px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #4af;
    border: 1px solid rgba(74, 170, 255, 0.2);
    margin-top: 0.25rem;
    overflow-x: auto;
}

html[data-theme="light"] .install-code {
    background: #f6f5f4;
    color: #1c71d8;
    border: 1px solid rgba(28, 113, 216, 0.25);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Device Support Status Section */
.device-support-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

.device-support-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.device-support-section > .container > p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.support-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.support-category {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.support-category:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.fully-supported {
    border-color: #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
}

html[data-theme="light"] .fully-supported {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.04) 100%);
    border-color: rgba(34, 197, 94, 0.5);
}

.partially-supported {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
}

html[data-theme="light"] .partially-supported {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.04) 100%);
    border-color: rgba(245, 158, 11, 0.5);
}

.not-supported {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
}

html[data-theme="light"] .not-supported {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.04) 100%);
    border-color: rgba(239, 68, 68, 0.5);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.category-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.fully-supported .category-header h3 {
    color: #4ade80;
}

html[data-theme="light"] .fully-supported .category-header h3 {
    color: #16a34a;
}

.partially-supported .category-header h3 {
    color: #fbbf24;
}

html[data-theme="light"] .partially-supported .category-header h3 {
    color: #d97706;
}

.not-supported .category-header h3 {
    color: #f87171;
}

html[data-theme="light"] .not-supported .category-header h3 {
    color: #dc2626;
}

.device-count {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

html[data-theme="light"] .device-count {
    background: rgba(0, 0, 0, 0.08);
}

.category-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.device-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.device-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

html[data-theme="light"] .device-item {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.device-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .device-item:hover {
    background: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.device-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.device-name {
    font-weight: 600;
    color: var(--text-primary);
}

.device-codename {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.device-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.percentage {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.feature-breakdown {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.partial-note, .broken-note {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
}

.partial-note {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

html[data-theme="light"] .partial-note {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.broken-note {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

html[data-theme="light"] .broken-note {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.no-devices {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
}
