/* Organization Page Specific Styles */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000 0%, #2a2a2a 100%);
    color: #FFD700;
    padding: 70px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 20px;
    color: #FFF;
}

/* Content Container */
.content-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Historic Photo Section */
.historic-photo-section {
    text-align: center;
    margin-bottom: 40px;
}

.historic-photo-section img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.photo-caption {
    color: #FFD700;
    font-size: 18px;
    font-style: italic;
    margin-top: 15px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    color: #c0c0c0;
    font-size: 14px;
    margin-bottom: 30px;
    padding: 10px 0;
}

.breadcrumb a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #FFF;
}

/* Organization Content */
.organization-content {
    background-color: #2a2a2a;
    padding: 50px 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-left: 5px solid #FFD700;
}

/* Article Header */
.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #FFD700;
}

.article-header h2 {
    color: #FFD700;
    font-size: 42px;
    margin-bottom: 15px;
}

.article-header .author {
    color: #c0c0c0;
    font-size: 18px;
    font-style: italic;
}

/* Article Body - Paragraph Style */
.article-body {
    margin-bottom: 50px;
}

.article-body p {
    color: #e0e0e0;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
}

.article-body p:first-of-type:first-letter {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
}

/* History Sections (for backward compatibility) */
.history-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.history-section:last-of-type {
    border-bottom: none;
}

.history-section h3 {
    color: #FFD700;
    font-size: 28px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #FFD700;
}

.history-section p {
    color: #e0e0e0;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Key Dates Section */
.key-dates {
    background-color: #333;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 2px solid #FFD700;
}

.key-dates h3 {
    color: #FFD700;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.key-dates ul {
    list-style: none;
    padding: 0;
}

.key-dates li {
    color: #e0e0e0;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.key-dates li:before {
    content: "▸";
    color: #FFD700;
    position: absolute;
    left: 0;
    font-size: 20px;
}

.key-dates li strong {
    color: #FFD700;
    font-weight: bold;
}

/* Family Legacy Section */
.family-legacy {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 2px solid #FFD700;
}

.family-legacy h3 {
    color: #FFD700;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.family-legacy p {
    color: #e0e0e0;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.family-legacy strong {
    color: #FFD700;
}

/* Related Organizations Section */
.related-organizations {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #FFD700;
}

.related-organizations h3 {
    color: #FFD700;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.related-organizations p {
    color: #e0e0e0;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.related-organizations strong {
    color: #FFD700;
}

/* Artifacts Section */
.artifacts-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid #FFD700;
}

.artifacts-section h3 {
    color: #FFD700;
    font-size: 32px;
    margin-bottom: 15px;
    text-align: center;
}

.artifacts-intro {
    color: #c0c0c0;
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    font-style: italic;
}

.artifacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.artifact-item {
    background-color: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    outline: none;
}

.artifact-item:focus {
    outline: none;
}

.artifact-item:hover {
    border-color: #FFD700;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
    text-decoration: none;
}

.artifact-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    display: block;
    border: none;
    background-color: #1a1a1a;
}

.artifact-caption {
    color: #e0e0e0;
    font-size: 16px;
    padding: 15px;
    text-align: center;
    background-color: #2a2a2a;
    border: none;
    text-decoration: none;
    box-shadow: none;
    margin: 0;
}

.artifact-item p {
    margin: 0;
    border: none;
    text-decoration: none;
}

/* Gallery Link Section */
.gallery-link-section {
    margin-top: 50px;
    text-align: center;
    padding: 30px;
    background-color: #1a1a1a;
    border-radius: 8px;
    border: 2px solid #FFD700;
}

.gallery-link-section p {
    color: #e0e0e0;
    font-size: 18px;
    margin-bottom: 20px;
}

.gallery-link-button {
    display: inline-block;
    background-color: #FFD700;
    color: #000;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.gallery-link-button:hover {
    background-color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 38px;
    }

    .organization-content {
        padding: 30px 20px;
    }

    .article-header h2 {
        font-size: 32px;
    }

    .article-body p {
        font-size: 16px;
        text-align: left;
    }

    .history-section h3 {
        font-size: 24px;
    }

    .key-dates,
    .family-legacy,
    .related-organizations {
        padding: 20px;
    }

    .key-dates h3,
    .family-legacy h3,
    .related-organizations h3 {
        font-size: 24px;
    }

    .artifacts-section h3 {
        font-size: 26px;
    }

    .artifacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .artifact-item img {
        height: 250px;
    }
}

/* Artifact Viewer Modal */
.artifact-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 2px solid #FFD700;
    color: #FFD700;
    width: 50px;
    height: 50px;
    font-size: 32px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3001;
    transition: all 0.3s;
}

.viewer-close:hover {
    background-color: #FFD700;
    color: #000;
    transform: scale(1.1);
}

.viewer-content {
    width: 90%;
    height: 90%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#openseadragon-viewer {
    flex: 1;
    background-color: #000;
    border: 2px solid #FFD700;
    border-radius: 8px;
}

.viewer-info {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #FFD700;
}

.viewer-info h3 {
    color: #FFD700;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

.viewer-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.control-btn {
    background-color: #FFD700;
    color: #000;
    border: none;
    width: 45px;
    height: 45px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.control-btn:hover {
    background-color: #FFF;
    transform: scale(1.1);
}

.zoom-level {
    background-color: #333;
    color: #FFD700;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

@media (max-width: 768px) {
    .viewer-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .viewer-content {
        width: 100%;
        height: 100%;
    }

    .viewer-info h3 {
        font-size: 18px;
    }

    .control-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .zoom-level {
        min-width: 60px;
        font-size: 14px;
        padding: 8px 15px;
    }
}

/* Contribute Section */
.contribute-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 3px solid #FFD700;
}

.contribute-section h3 {
    color: #FFD700;
    font-family: 'Georgia', serif;
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
}

.contribute-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.contribute-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.contribute-card:hover {
    border-color: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.contribute-icon {
    margin-bottom: 15px;
}

.contribute-icon svg {
    width: 48px;
    height: 48px;
    stroke: #FFD700;
}

.contribute-card h4 {
    color: #FFD700;
    font-size: 20px;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
}

.contribute-card p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contribute-btn {
    display: inline-block;
    background: #FFD700;
    color: #000;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Georgia', serif;
}

.contribute-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

.contribute-btn.secondary {
    background: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
}

.contribute-btn.secondary:hover {
    background: #FFD700;
    color: #000;
}

@media (max-width: 768px) {
    .contribute-grid {
        grid-template-columns: 1fr;
    }

    .contribute-card {
        padding: 25px;
    }

    .contribute-icon svg {
        width: 40px;
        height: 40px;
    }

    .contribute-section h3 {
        font-size: 24px;
    }
}

/* Suggestion Modal */
.suggest-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.suggest-modal-content {
    background: #1a1a1a;
    border: 3px solid #FFD700;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    position: relative;
}

.suggest-modal-content h2 {
    color: #FFD700;
    font-size: 22px;
    font-family: 'Georgia', serif;
    margin: 0 0 8px 0;
    padding-right: 30px;
}

.suggest-modal-subtitle {
    color: #999;
    font-size: 14px;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.suggest-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.suggest-modal-close:hover {
    color: #FFD700;
}

.suggest-form .form-group {
    margin-bottom: 20px;
}

.suggest-form label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-size: 14px;
}

.suggest-form input,
.suggest-form textarea,
.suggest-form select {
    width: 100%;
    padding: 12px 15px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.suggest-form input:focus,
.suggest-form textarea:focus,
.suggest-form select:focus {
    outline: none;
    border-color: #FFD700;
}

.suggest-form textarea {
    min-height: 120px;
    resize: vertical;
}

.suggest-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 500px) {
    .suggest-form .form-row {
        grid-template-columns: 1fr;
    }
}

.suggest-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: #FFD700;
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
    margin-top: 10px;
}

.suggest-submit-btn:hover {
    background: #fff;
}

.suggest-submit-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

.suggest-form .form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.suggest-form .form-buttons button {
    flex: 1;
    padding: 14px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggest-form .submit-btn {
    background: #FFD700;
    color: #000;
    border: none;
}

.suggest-form .submit-btn:hover {
    background: #fff;
}

.suggest-form .submit-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

.suggest-form .cancel-btn {
    background: transparent;
    border: 2px solid #666;
    color: #888;
}

.suggest-form .cancel-btn:hover {
    border-color: #FFD700;
    color: #FFD700;
}

.article-info {
    background: #2a2a2a;
    padding: 12px 15px;
    border-radius: 6px;
    color: #888;
    font-size: 13px;
    margin-bottom: 15px;
}
