/**
 * css/pages.css
 * Shared styles for static pages (about, privacy, terms, contact, resources, profile)
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #2c5aa0;
    font-weight: 600;
    font-size: 1.1em;
}

.header-brand:hover {
    color: #1e3a6b;
}

/* Container */
.container {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
}

/* Typography */
h1 {
    color: #2c5aa0;
    margin-bottom: 10px;
}

h2 {
    color: #2c5aa0;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

h2:first-child {
    margin-top: 0;
}

h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}

.last-updated {
    color: #666;
    margin-bottom: 30px;
}

p {
    margin-bottom: 15px;
}

/* Cards */
.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2c5aa0;
}

.card h2:first-child {
    margin-top: 0;
}

.card ul {
    margin: 15px 0 15px 30px;
}

.card ul li {
    margin-bottom: 8px;
}

/* Lists */
.resource-list {
    list-style: none;
    padding: 0;
}

.resource-item, .info-item {
    padding: 15px;
    background: #f8f9fa;
    margin: 10px 0;
    border-radius: 5px;
    border-left: 4px solid #2c5aa0;
}

.resource-item strong, .info-item strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.resource-item small {
    color: #666;
}

.info-item span {
    font-size: 1.1em;
    color: #333;
}

/* Preview Boxes */
.part-preview {
    padding: 20px;
    background: #f8f9fa;
    margin: 15px 0;
    border-radius: 5px;
    border-left: 4px solid #2c5aa0;
}

.part-preview h3 {
    margin-top: 0;
    color: #2c5aa0;
}

.part-preview p {
    margin-bottom: 0;
    color: #555;
}

/* Progress Items */
.progress-item {
    padding: 15px;
    background: white;
    margin: 10px 0;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-item strong {
    color: #333;
}

.progress-value {
    font-size: 1.2em;
    font-weight: bold;
}

/* Alerts */
.alert {
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
}

.alert-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 10px 10px 10px 0;
    font-size: 1em;
    transition: opacity 0.2s, background 0.2s;
}

.btn:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #234a7f;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.cta-buttons {
    text-align: center;
    margin-top: 40px;
}

.cta-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1em;
    margin: 0 10px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

/* Details/Accordion */
details {
    padding: 15px;
    background: white;
    margin: 10px 0;
    border-radius: 5px;
    cursor: pointer;
}

details summary {
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::before {
    content: '▶ ';
    display: inline-block;
    transition: transform 0.2s;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details p {
    margin-top: 10px;
    padding-left: 10px;
}

details a {
    color: #2c5aa0;
    text-decoration: none;
}

details a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 40px auto;
        padding: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
}