/* Computational Chemistry Visualization CSS */

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Light background with dark text for learning accessibility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section */
.heroSection {
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.heroContent {
    position: relative;
    z-index: 2;
}

.heroSection h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.heroSection p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.exploreButton {
    background-color: #ff6b6b;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.exploreButton:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background-color: #e9ecef;
    padding: 15px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #fff;
    border-radius: 0.25rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    color: #6c757d;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Definition Section */
.definition-section {
    padding: 80px 0;
    background-color: white;
}

.definition-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 40px;
}

.definition-card h3 {
    color: #43cea2;
    font-size: 2rem;
    margin-bottom: 20px;
}

.definition-card p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
}

/* Visualization Section */
.visualization-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.visualization-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.visualization-title {
    text-align: center;
    color: #43cea2;
    font-size: 2rem;
    margin-bottom: 30px;
}

.canvas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

.canvas-wrapper {
    flex: 1;
    min-width: 300px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.canvas-wrapper h4 {
    text-align: center;
    color: #43cea2;
    margin-bottom: 15px;
}

.computationalChemistryCanvas, .processCanvas {
    width: 100%;
    height: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
}

/* Controls Section */
.controls-section {
    padding: 60px 0;
    background-color: white;
}

.controls-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.controls-title {
    color: #43cea2;
    font-size: 2rem;
    margin-bottom: 30px;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.control-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.control-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
}

.control-group input[type="range"] {
    width: 100%;
    margin-bottom: 10px;
}

.control-value {
    font-weight: 600;
    color: #43cea2;
}

/* Animation Controls */
.animation-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #43cea2;
    color: white;
}

.btn-primary:hover {
    background-color: #3ac79b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* Example Exercises Section */
.example-exercises-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.example-exercises-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.example-exercises-title {
    text-align: center;
    color: #43cea2;
    font-size: 2rem;
    margin-bottom: 30px;
}

.accordion {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    background-color: #43cea2;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background-color: #3ac79b;
}

.accordion-button {
    background: none;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: left;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-body {
    padding: 20px;
    display: none;
    background-color: #f9f9f9;
}

.accordion-body.show {
    display: block;
}

.accordion-body h4 {
    color: #43cea2;
    margin-top: 0;
}

/* MCQ Section */
.mcq-section {
    padding: 80px 0;
    background-color: white;
}

.mcq-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.mcq-title {
    text-align: center;
    color: #43cea2;
    font-size: 2rem;
    margin-bottom: 30px;
}

.mcq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.mcq-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mcq-question {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #495057;
}

.mcq-options {
    margin-bottom: 20px;
}

.option {
    margin-bottom: 10px;
}

.option input[type="radio"] {
    margin-right: 10px;
}

.option label {
    cursor: pointer;
}

.show-answer-btn {
    align-self: flex-start;
    margin-top: auto;
}

.answer-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 8px;
    display: none;
}

.answer-section.show {
    display: block;
}

.answer-section.correct {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.answer-section.incorrect {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Types Section */
.types-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.types-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.types-title {
    text-align: center;
    color: #43cea2;
    font-size: 2rem;
    margin-bottom: 30px;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.type-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.type-card:hover {
    transform: translateY(-10px);
}

.type-icon {
    font-size: 3rem;
    color: #43cea2;
    margin-bottom: 20px;
}

.type-card h4 {
    color: #43cea2;
    margin-bottom: 15px;
}

.type-card p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Formula Section */
.formula-section {
    padding: 80px 0;
    background-color: white;
}

.formula-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.formula-title {
    text-align: center;
    color: #43cea2;
    font-size: 2rem;
    margin-bottom: 30px;
}

.formula-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.formula-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.formula {
    font-size: 1.5rem;
    color: #43cea2;
    margin-bottom: 15px;
    font-family: 'Times New Roman', serif;
}

.formula-card h4 {
    color: #43cea2;
    margin-bottom: 15px;
}

.formula-card p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Applications Section */
.applications-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.applications-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.applications-title {
    text-align: center;
    color: #43cea2;
    font-size: 2rem;
    margin-bottom: 30px;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.application-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.application-icon {
    font-size: 3rem;
    color: #43cea2;
    margin-bottom: 20px;
}

.application-card h4 {
    color: #43cea2;
    margin-bottom: 15px;
}

.application-card p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .heroSection h1 {
        font-size: 2.5rem;
    }
    
    .definition-card, .visualization-container, .controls-container,
    .example-exercises-container, .mcq-container, .types-container,
    .formula-container, .applications-container {
        padding: 20px;
    }
    
    .canvas-container {
        flex-direction: column;
    }
    
    .mcq-grid {
        grid-template-columns: 1fr;
    }
    
    .animation-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Animation for interactive elements */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.ds-icon {
    animation: float 3s ease-in-out infinite;
}

/* Specific styling for computational chemistry visualizations */
.molecule-visualization {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, #e3f2fd, #bbdefb);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.atom {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2196F3;
    animation: moveAtom 5s infinite linear;
}

.bond {
    position: absolute;
    height: 2px;
    background: #757575;
    transform-origin: left center;
}

@keyframes moveAtom {
    0% { transform: translate(0, 0); }
    25% { transform: translate(50px, -30px); }
    50% { transform: translate(100px, 0); }
    75% { transform: translate(50px, 30px); }
    100% { transform: translate(0, 0); }
}

.computational-equation {
    text-align: center;
    font-size: 1.2rem;
    margin: 20px 0;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    font-family: 'Times New Roman', serif;
}