/* 
   Styles.css - Main stylesheet for theplatonist.com
   Created: April 27, 2025
*/

/* ----- RESET & BASE STYLES ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.8rem;
    color: #2c4c9c;
    margin: 2rem 0 1rem;
}

h3 {
    font-size: 1.5rem;
    color: #3a5fbc;
    margin: 1.5rem 0 0.8rem;
}

h4 {
    font-size: 1.3rem;
    color: #4a6fcc;
    margin: 1.2rem 0 0.6rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: #2c4c9c;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

blockquote {
    font-style: italic;
    border-left: 4px solid #1e3a8a;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #555;
}

ul, ol {
    margin: 0 0 1.5rem 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ----- LAYOUT ----- */
header {
    background-color: #1e3a8a;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

header p {
    margin-bottom: 0;
    font-style: italic;
}

nav {
    background-color: #2c4c9c;
    padding: 1rem 0;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ddd;
}

main {
    background-color: white;
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #666;
    font-size: 0.9rem;
}

/* ----- COMMON SECTIONS & COMPONENTS ----- */
.intro-section {
    margin-bottom: 2rem;
}

.dialogue-card, .resource-card, .contact-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dialogue-card:hover, .resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dialogue-meta, .resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.dialogue-meta div, .theme-tag {
    padding: 0.3rem 0.6rem;
    background-color: #f0f4ff;
    border-radius: 3px;
}

.key-themes, .resource-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.theme-tag, .resource-features span {
    background-color: #f0f4ff;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.9rem;
    color: #1e3a8a;
}

/* ----- TABLES ----- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f0f4ff;
    color: #1e3a8a;
}

tr:hover {
    background-color: #f8f8f8;
}

/* ----- ACCORDION ----- */
.accordion-item {
    margin-bottom: 0.5rem;
}

.accordion-header {
    background-color: #f0f4ff;
    padding: 1rem;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #1e3a8a;
    transition: background-color 0.3s;
}

.accordion-header:hover, .accordion-header.active {
    background-color: #e0e4ff;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1rem;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

.accordion-header.active + .accordion-content {
    padding: 1rem;
}

/* ----- FORMS ----- */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item input {
    margin-right: 0.5rem;
}

.newsletter-signup {
    display: flex;
    align-items: center;
}

.newsletter-signup input {
    margin-right: 0.5rem;
}

.submit-btn {
    background-color: #1e3a8a;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #152c6c;
}

/* ----- CONTACT PAGE ----- */
.contact-options {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.alternate-contacts {
    flex: 1;
    min-width: 300px;
}

.contact-method {
    margin-bottom: 1.5rem;
}

.social-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-links li {
    margin-bottom: 0.5rem;
}

.community-options li {
    margin-bottom: 1rem;
}

/* ----- RESOURCE PAGE ----- */
.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.resource-recommendation {
    font-style: italic;
    margin-top: 1rem;
    color: #555;
}

.tips-box {
    background-color: #f0f4ff;
    border-left: 4px solid #1e3a8a;
    padding: 1.5rem;
    margin: 2rem 0;
}

.resource-table {
    overflow-x: auto;
}

/* ----- DIALOGUES PAGE ----- */
.dialogue-group {
    margin-bottom: 3rem;
}

.filtering {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f0f4ff;
    border-radius: 5px;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid #1e3a8a;
    border-radius: 3px;
    color: #1e3a8a;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #1e3a8a;
    color: white;
}

.search-container {
    width: 100%;
    margin-top: 1rem;
}

.search-container input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 1rem;
}

.reading-guide {
    background-color: #f8f8f8;
    padding: 1.5rem;
    border-left: 4px solid #1e3a8a;
    margin: 2rem 0;
}

/* ----- CARDINAL VIRTUES PAGE ----- */
.virtue-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.virtue-section:last-child {
    border-bottom: none;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.cta-box {
    background-color: #f0f4ff;
    border-left: 4px solid #1e3a8a;
    padding: 1.5rem;
    margin: 2rem 0;
}

.related-resources {
    background-color: #f8f8f8;
    padding: 1.5rem;
    margin-top: 3rem;
}

/* ----- PLATO PAGE ----- */
.bio-img {
    float: right;
    margin: 0 0 1.5rem 1.5rem;
    max-width: 300px;
    border: 1px solid #ddd;
    padding: 5px;
    background: #fff;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #1e3a8a;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid #1e3a8a;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #f0f4ff;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #f0f4ff;
}

.timeline-right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #f0f4ff;
    border-width: 10px 10px 10px 0;
    border-color: transparent #f0f4ff transparent transparent;
}

.timeline-right::after {
    left: -16px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: #f0f4ff;
    position: relative;
    border-radius: 6px;
}

.key-concept {
    background-color: #f0f4ff;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #1e3a8a;
}

.legacy-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 2rem 0;
}

.legacy-item {
    flex: 0 0 48%;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 8px;
}

/* ----- RESPONSIVE STYLES ----- */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .bio-img {
        float: none;
        display: block;
        margin: 0 auto 1.5rem;
        max-width: 100%;
    }
    
    .dialogue-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .legacy-item {
        flex: 0 0 100%;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-container::before {
        left: 60px;
        border: medium solid #f0f4ff;
        border-width: 10px 10px 10px 0;
        border-color: transparent #f0f4ff transparent transparent;
    }
    
    .timeline-left::after, .timeline-right::after {
        left: 15px;
    }
    
    .timeline-right {
        left: 0%;
    }
    
    .contact-options {
        flex-direction: column;
    }
}
