/* Personal Security Section Styling */
/* Note: Shared section styles (page header, tabs, content sections, boxes, grids) are in styles.css */

.personal-security-theme {
    background: linear-gradient(135deg, rgba(24, 71, 138, 1) 0%, rgba(24, 71, 138, 0.7) 100%);
}

.family-home-theme {
    background: linear-gradient(135deg, rgba(109, 205, 59, 1) 0%, rgba(109, 205, 59, 0.7) 100%);
}

.business-theme {
    background: linear-gradient(135deg, rgba(247, 117, 18, 1) 0%, rgba(247, 117, 18, 0.7) 100%);
}

/* Personal-security specific tab active color */
.tabs .tab-active {
    color: rgba(24, 71, 138, 1);
    border-bottom-color: rgba(24, 71, 138, 1);
    opacity: 1;
}

html.dark-mode .tabs .tab-active {
    color: rgba(109, 205, 59, 1);
    border-bottom-color: rgba(109, 205, 59, 1);
}

/* Personal-security blue theme color overrides */
.content-section h3 {
    border-left: 4px solid rgba(24, 71, 138, 1);
}

html.dark-mode .content-section h3 {
    border-left-color: rgba(109, 205, 59, 1);
}

.content-section ul li:before {
    content: "▸";
    color: rgba(24, 71, 138, 1);
}

html.dark-mode .content-section ul li:before {
    color: rgba(109, 205, 59, 1);
}

.subsection {
    border-left: 4px solid rgba(24, 71, 138, 1);
}

html.dark-mode .subsection {
    border-left-color: rgba(109, 205, 59, 1);
}

/* Personal-security color overrides for boxes */
.highlight-box {
    background: rgba(24, 71, 138, 0.05);
    border-left: 4px solid rgba(24, 71, 138, 1);
}

html.dark-mode .highlight-box {
    background: rgba(109, 205, 59, 0.1);
    border-left-color: rgba(109, 205, 59, 1);
}

.highlight-box ul li:before {
    color: rgba(109, 205, 59, 1);
}

.warning-box {
    background: rgba(247, 117, 18, 0.05);
    border-left: 4px solid rgba(247, 117, 18, 1);
}

html.dark-mode .warning-box {
    background: rgba(247, 117, 18, 0.1);
}

/* Personal-security unique code example styles */
.code-example {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-example p {
    margin: 0.5rem 0;
    color: rgba(109, 205, 59, 1);
}

.code-example.warning {
    background: #ffebee;
    color: rgba(247, 117, 18, 1);
}

.code-example.warning p {
    color: rgba(247, 117, 18, 1);
}

html.dark-mode .code-example {
    background: #1a1a1a;
}

/* Personal-security content card color overrides */
.content-card {
    border-top: 4px solid rgba(24, 71, 138, 1);
}

.content-card:hover {
    box-shadow: 0 4px 12px rgba(24, 71, 138, 0.15);
}

html.dark-mode .content-card:hover {
    box-shadow: 0 4px 12px rgba(109, 205, 59, 0.15);
}

.card-link {
    color: rgba(24, 71, 138, 1);
}

html.dark-mode .card-link {
    color: rgba(109, 205, 59, 1);
}

.card-link:hover {
    color: rgba(247, 117, 18, 1);
}

/* Personal-security key takeaways color override */
.key-takeaways {
    background: rgba(109, 205, 59, 0.05);
    border: 2px solid rgba(109, 205, 59, 1);
}

html.dark-mode .key-takeaways {
    background: rgba(109, 205, 59, 0.1);
}

.key-takeaways h3 {
    color: rgba(109, 205, 59, 1);
    border-left: 4px solid rgba(109, 205, 59, 1);
}

.key-takeaways ul li:before {
    color: rgba(109, 205, 59, 1);
}

/* Personal-security responsive overrides - minimal, most responsive styles are in styles.css */

/* Personal-security unique styles - Article/Password page specific */

.article-meta {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    border-left: 4px solid rgba(24, 71, 138, 1);
}

.article-meta p {
    margin: 0.5rem 0;
    color: var(--text-color);
    opacity: 0.8;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.comparison-table th {
    background: rgba(24, 71, 138, 1);
    color: white;
    font-weight: bold;
}

.comparison-table tr:nth-child(even) {
    background: var(--bg-color);
}

.code-block {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.code-block p {
    margin: 0.5rem 0;
    color: #2ecc71;
}

.action-box {
    background: var(--card-bg);
    border: 2px solid rgba(24, 71, 138, 1);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.action-box h3 {
    color: rgba(24, 71, 138, 1);
    margin-top: 0;
}

.action-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.action-number {
    background: rgba(24, 71, 138, 1);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.action-content p {
    margin: 0;
    color: var(--text-color);
}

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

.emoji-list li {
    padding: 0.8rem 0;
    margin-left: 0;
}

.emoji-list li:before {
    content: "";
    margin-right: 0;
}

.bad-example {
    background: var(--card-bg);
    border-left: 4px solid #e74c3c;
}

.good-example {
    background: var(--card-bg);
    border-left: 4px solid #27ae60;
}

.highlight-green {
    color: #27ae60;
    font-weight: bold;
}

.highlight-red {
    color: #e74c3c;
    font-weight: bold;
}


/* Mobile Responsive Styles */

@media (max-width: 768px) {
    .page-header {
        padding: 2rem 1rem;
    }
    .page-header h1 {
        font-size: 1.75rem;
    }
    .page-header p {
        font-size: 1rem;
    }
    .section-nav {
        top: 58px;
    }
    .tabs {
        gap: 1rem;
        padding: 0 1rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        border-bottom: 2px solid var(--border-color);
        padding-bottom: 0.5rem;
    }
    .tabs a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    .section-content {
        padding: 2rem 1rem;
    }
    .section-content h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    .content-section {
        margin-bottom: 2rem;
    }
    .content-section h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        padding-left: 0.75rem;
    }
    .content-section h4 {
        font-size: 1.1rem;
        margin-top: 1.25rem;
        margin-bottom: 0.6rem;
    }
    .content-section ul li {
        padding: 0.4rem 0 0.4rem 1.25rem;
        font-size: 0.95rem;
    }
    .content-section ol li {
        padding: 0.4rem 0 0.4rem 1.75rem;
        font-size: 0.95rem;
    }
    .subsection {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    .comparison-table {
        font-size: 0.9rem;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
    }
    .action-box {
        padding: 1.25rem;
    }
    .action-box h3 {
        font-size: 1.1rem;
    }
    .action-content {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.35rem;
    }
    .page-header p {
        font-size: 0.9rem;
    }
    .section-content {
        padding: 1.5rem 0.75rem;
    }
    .section-content h2 {
        font-size: 1.25rem;
    }
    .tabs {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    .tabs a {
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
    }
    .content-section h3 {
        font-size: 1.05rem;
    }
    .content-section p, 
    .content-section li {
        font-size: 0.9rem;
    }
    .comparison-table {
        font-size: 0.8rem;
        overflow-x: auto;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
    .action-box {
        padding: 1rem;
    }
    .subsection {
        padding: 0.75rem;
    }
}