/* File: inc/style.css */

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(to bottom, #1f1f1f, #000);
    color: #f5f5dc;
}

a {
  color: #e0c97f; /* soft gold for unvisited links */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:visited {
  color: #b6a76b; /* slightly muted gold for visited links */
}

a:hover,
a:focus {
  color: #fff; /* brighten on hover for contrast */
  text-decoration: underline;
}

a:active {
  color: #f5e7b4; /* light gold when clicked */
}


/* Navigation */
.navbar {
    background-color: #121212;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    color: #f5f5dc;
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #f5f5dc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #d4af37;
}

/* Footer */
.site-footer {
    background-color: #121212;
    color: #ccc;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 4rem;
    border-top: 1px solid #333;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-link {
    color: #d4af37;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-tagline {
    font-style: italic;
    color: #f5f5dc;
}

header,
section {
    padding: 4rem 1rem;
    text-align: center;
}

.logo {
    width: 160px;
    height: auto;
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn {
    background-color: #f5f5dc;
    color: #000;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #d4af37;
}

.about {
    background-color: #2e2e2e;
}

.teaser {
    background-color: #000;
    font-style: italic;
}

/* Footer */
.site-footer {
    background-color: #121212;
    color: #ccc;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 4rem;
    border-top: 1px solid #333;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-link {
    color: #d4af37;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-tagline {
    font-style: italic;
    color: #f5f5dc;
}

/* Team Section */
.team-section {
    padding: 4rem 1rem;
    background-color: #1a1a1a;
    text-align: center;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    background-color: #2e2e2e;
    border-radius: 8px;
    padding: 1rem;
    max-width: 200px;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: scale(1.05);
}

.team-photo {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.team-name {
    font-weight: bold;
    margin: 0.5rem 0 0;
}

.team-role {
    font-style: italic;
    font-size: 0.9rem;
    color: #d4af37;
}

/* Profile Page */
.profile-section {
    padding: 4rem 1rem;
    background-color: #1a1a1a;
    color: #f5f5dc;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    background-color: #2e2e2e;
    padding: 2rem;
    border-radius: 8px;
}

.profile-image img {
    width: 200px;
    border-radius: 4px;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.profile-info p {
    margin: 0.5rem 0;
}

.profile-info a {
    color: #d4af37;
    text-decoration: none;
}

.profile-info a:hover {
    text-decoration: underline;
}

/* Error Message */
.error-message {
    padding: 4rem 1rem;
    text-align: center;
    color: #ff4444;
    font-weight: bold;
}

/* About Section */
.about-section {
    padding: 4rem 1rem;
    background-color: #1a1a1a;
    color: #f5f5dc;
    text-align: center;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-container p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-container a {
    color: #d4af37;
    text-decoration: none;
}

.about-container a:hover {
    text-decoration: underline;
}

/* Events Section */
.events-section {
    padding: 4rem 1rem;
    background-color: #1a1a1a;
    color: #f5f5dc;
}

.events-container {
    max-width: 900px;
    margin: 0 auto;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background-color: #2e2e2e;
    border-left: 4px solid #d4af37;
    padding: 1.5rem;
    border-radius: 8px;
}

.event-date-time {
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.event-details h3 {
    margin: 0.5rem 0;
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
}

.event-price,
.event-location {
    margin: 0.25rem 0;
    font-size: 1rem;
}

.no-events {
    text-align: center;
    font-style: italic;
    color: #ccc;
}

/* Terms Section */
.terms-section {
    padding: 4rem 1rem;
    background-color: #1a1a1a;
    color: #f5f5dc;
}

.terms-container {
    max-width: 900px;
    margin: 0 auto;
}

.terms-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.term-item {
    background-color: #2e2e2e;
    padding: 1.5rem;
    border-left: 4px solid #d4af37;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.term-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.term-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}

.no-terms {
    text-align: center;
    font-style: italic;
    color: #ccc;
}

.terms-table td,
.terms-table th {
    vertical-align: middle;
    padding: 12px 16px;
    text-align: left;
    word-break: break-word;
}

.terms-table th:last-child,
.terms-table td:last-child {
    text-align: center;
    min-width: 180px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

button {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button[type="submit"] {
    background-color: #d4af37;
    color: black;
}

button.danger {
    background-color: #ff4d4d;
    color: white;
}

/* Investigations Section */
.investigations-section {
    padding: 4rem 1rem;
    background-color: #1a1a1a;
    color: #f5f5dc;
    text-align: center;
}

.investigations-container {
    max-width: 900px;
    margin: 0 auto;
}

.investigations-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.investigation-item {
    background-color: #2e2e2e;
    border-left: 4px solid #d4af37;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    text-align: left;
}

.investigation-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
}

.investigation-link:hover {
    text-decoration: underline;
}

.investigation-text {
    color: #f5f5dc;
    font-weight: normal;
}

.no-investigations {
    font-style: italic;
    color: #ccc;
}

.investigations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.investigation-card {
    background-color: #2e2e2e;
    border-left: 4px solid #d4af37;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.investigation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

.investigation-link,
.investigation-static {
    color: #f5f5dc;
    text-decoration: none;
}

.investigation-link h3,
.investigation-static h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.investigation-link p,
.investigation-static p {
    font-size: 1rem;
    color: #ccc;
}

.investigation-detail {
    padding: 4rem 1rem;
    background-color: #1a1a1a;
    color: #f5f5dc;
}

.investigation-detail .container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.media-section {
    margin-bottom: 3rem;
}

.media-section h3 {
    font-size: 1.5rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.media-item {
    background-color: #2e2e2e;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.media-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.media-item p {
    font-size: 0.95rem;
    color: #ccc;
}

.media-item audio {
    width: 100%;
    margin-bottom: 0.5rem;
}

.image-viewer {
    padding: 4rem 1rem;
    background-color: #1a1a1a;
    text-align: center;
    color: #f5f5dc;
}

.image-container {
    max-width: 1000px;
    margin: 0 auto;
}

.image-container img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.back-button {
    margin-bottom: 2rem;
    padding: 0.75rem 1.5rem;
    background-color: #d4af37;
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.back-button:hover {
    background-color: #f5f5dc;
}

.error-message {
    color: #ff5555;
    font-weight: bold;
}

.media-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    max-height: 300px;
    object-fit: contain;
}

.video-viewer {
    padding: 4rem 1rem;
    background-color: #1a1a1a;
    color: #f5f5dc;
    text-align: center;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
}

video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
}

.back-button {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.25rem;
    background-color: #d4af37;
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.back-button:hover {
    background-color: #f5f5dc;
}

.error-message {
    color: #ff5555;
    font-weight: bold;
}

.video-credit {
    margin-top: 1rem;
    font-style: italic;
    color: #ccc;
}

.center {
    text-align: center;
    margin-top: 20px;
}

.table-wrapper,
.form-wrapper {
    width: 80%;
    margin: 0 auto;
}

.tool-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #000;
    color: #fff;
}

.tool-table th,
.tool-table td {
    border: 1px solid #333;
    padding: 10px;
    text-align: center;
}

input[type="text"],
button {
    padding: 5px 10px;
    margin: 5px;
    width: 90%;
}

.form-wrapper {
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-card {
    background-color: #1c1c1c;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    width: 100%;
    max-width: 500px;
    color: #fff;
}

.form-card h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #d4af37;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background-color: #2e2e2e;
    color: #fff;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 5px #d4af37;
}

.form-actions {
    text-align: center;
}

.form-actions button {
    background-color: #d4af37;
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-actions button:hover {
    background-color: #d4af37;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.styled-table th,
.styled-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: middle;
}

.styled-table td form {
    display: inline;
}

.inline-form button {
    padding: 6px 10px;
    font-size: 0.85rem;
    border: none;
    border-radius: 4px;
    margin: 2px;
    cursor: pointer;
    background-color: #d4af37;
    color: #000;
    transition: all 0.2s ease-in-out;
}

.inline-form button:hover {
    background-color: #d4af37;
}

.tag.contacted {
    background: #ff5252;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    font-size: 1.2rem;
    color: #aaa;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin: 2rem auto;
    width: 90%;
    max-width: 800px;
}

.team-grid.admin-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.team-card .action-buttons {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-action {
    border: none;
    padding: 0.5rem 1rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

.btn-action.green {
    background-color: #28a745;
}

.btn-action.yellow {
    background-color: #ffc107;
}

.btn-action.red {
    background-color: #dc3545;
}

.btn-action.blue {
    background-color: #007bff;
}

.subheading {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.team-photo {
    height: 150px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

select,
input[type="text"] {
    width: 100%;
    padding: 0.5em;
    margin-top: 0.25em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.event-table-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.data-table {
    width: 90%;
    max-width: 1024px;
    border-collapse: collapse;
}

.data-table td,
.data-table th {
    text-align: center;
    padding: 12px;
    border: 1px solid #444;
    color: #f0f0f0;
}

.delete-btn,
.evp-delete-btn,
.video-delete-btn {
    margin-top: 8px;
    background: #ff5555;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.delete-btn:hover,
.evp-delete-btn:hover,
.video-delete-btn:hover {
    background: #e00000;
}