/* Research page specific styles */

/* Basic reset and body styles */
* {
    color: inherit;
    margin: 0;
}

body {
    font-family: "Space Grotesk", sans-serif;
    margin: 0;
    cursor: default;
}

/* Header styles */
.header {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    height: 65px;
    width: 100%;
    border-bottom: 1px solid #1D1D1D;
}

.header nav ul {
    float: right;
    margin-right: 60px;
    white-space: nowrap;
    list-style: none;
}

.header ul li {
    display: inline-block;
    line-height: 65px;
    margin: 0 8px;
    vertical-align: top;
}

.header ul li a {
    position: relative;
    color: #1D1D1D;
    font-size: 14px;
    text-decoration: none;
    font-weight: 300;
}

.header ul li a::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #1D1D1D;
    transform: translateY(-50%) scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.3s ease;
}

.header ul li a:hover::after {
    transform: translateY(-50%) scaleX(1);
}

/* Consistent navigation item spacing */
.header ul li a[data-translate] {
    display: inline-block;
    min-width: 80px;
    text-align: center;
    margin: 0 10px;
}

#hometitle {
    margin-right: 800px;
    margin-left: 0;
    min-width: auto;
    text-align: left;
}

.research-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 100px;
}

.research-header {
    margin-bottom: 80px;
    border-bottom: 1px solid #1D1D1D;
    padding-bottom: 40px;
}

.research-header h1 {
    font-size: 120px;
    font-weight: 450;
    letter-spacing: -5px;
    color: #1D1D1D;
    margin-bottom: 20px;
    line-height: 1;
}

.research-subtitle {
    font-size: 16px;
    color: #1D1D1D;
    font-weight: 300;
    margin-left: 4px;
}

/* Jazz methodology specific styles */
.project-intro {
    margin-bottom: 60px;
}

.project-intro p {
    font-size: 16px;
    line-height: 1.6;
    color: #1D1D1D;
    margin-bottom: 20px;
    font-weight: 300;
}

.method-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.method-card {
    border: 1px solid #1D1D1D;
    padding: 30px;
    background-color: white;
    transition: all 0.3s ease;
}

.method-card:hover {
    background-color: #fafafa;
}

.method-card h2 {
    font-size: 24px;
    font-weight: 500;
    color: #1D1D1D;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.method-card p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 300;
}

.method-details {
    display: none;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.method-card.expanded .method-details {
    display: block;
}

/* Audio player styles */
.custom-audio-player {
    margin-bottom: 30px;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.play-pause-btn {
    background: none;
    border: 1px solid #1D1D1D;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.play-pause-btn:hover {
    background-color: #1D1D1D;
    color: white;
}

.progress-container {
    flex: 1;
    max-width: 300px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #eee;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background-color: #1D1D1D;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: #1D1D1D;
    border-radius: 50%;
    margin-left: -6px;
    cursor: pointer;
}

.time-display {
    font-size: 12px;
    color: #666;
    min-width: 80px;
}

/* PDF viewer styles */
.sheet-music {
    margin-top: 30px;
}

.pdf-viewer {
    border: 1px solid #1D1D1D;
    padding: 20px;
    background-color: white;
}

.pdf-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.pdf-nav {
    background: none;
    border: 1px solid #1D1D1D;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pdf-nav:hover {
    background-color: #1D1D1D;
    color: white;
}

.page-info {
    font-size: 14px;
    color: #666;
}

.pdf-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.pdf-loading {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Web piece button */
.web-piece-button {
    margin-top: 20px;
}

.web-piece-button a {
    display: inline-block;
    color: #1D1D1D;
    text-decoration: none;
    border: 1px solid #1D1D1D;
    padding: 10px 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.web-piece-button a:hover {
    background-color: #1D1D1D;
    color: white;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.research-item {
    border: 1px solid #1D1D1D;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.research-item:hover {
    background-color: #fafafa;
    border-color: #000;
}

.research-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.research-number {
    color: #1D1D1D;
    font-weight: 500;
}

.research-status {
    color: #666;
    background-color: rgb(239, 239, 239);
    padding: 4px 8px;
    border-radius: 0px;
    font-size: 10px;
}

.research-item h3 {
    font-size: 24px;
    font-weight: 500;
    color: #1D1D1D;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.research-item p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 300;
    flex-grow: 1;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag {
    background-color: white;
    border: 1px solid #1D1D1D;
    padding: 4px 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
    color: #1D1D1D;
    border-radius: 0px;
}

.research-item:hover .tag {
    background-color: white;
    border-color: #000;
}

/* Modal styles */
.research-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border: 1px solid #1D1D1D;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    border-bottom: 1px solid #1D1D1D;
    padding: 20px 30px;
    background-color: rgb(239, 239, 239);
}

.close {
    color: #1D1D1D;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-body {
    padding: 40px 30px;
}

.modal-body h2 {
    font-size: 36px;
    font-weight: 500;
    color: #1D1D1D;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.modal-body .project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.modal-body .project-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.modal-body .project-details {
    margin-bottom: 30px;
}

.modal-body .project-details h4 {
    font-size: 14px;
    font-weight: 500;
    color: #1D1D1D;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body .project-details ul {
    list-style: none;
    padding: 0;
}

.modal-body .project-details li {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.modal-body .project-details li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: #1D1D1D;
}

.project-links {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.project-links a {
    display: inline-block;
    color: #1D1D1D;
    text-decoration: none;
    border: 1px solid #1D1D1D;
    padding: 8px 16px;
    margin-right: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background-color: #1D1D1D;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .research-content {
        padding: 40px 60px;
    }

    .research-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .research-content {
        padding: 30px 40px;
    }

    .research-header h1 {
        font-size: 80px;
        letter-spacing: -4px;
    }

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

    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
}

/* Language selector styles - matches main site */
.language-selector {
    position: relative;
    display: inline-block;
    line-height: 65px;
    margin: 0 8px;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #1D1D1D;
    z-index: 1000;
    min-width: 150px;
    margin-top: -2px;
}

.language-dropdown a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #1D1D1D;
    font-size: 12px;
    transition: background-color 0.3s ease;
    border-bottom: 1px dotted #ddd;
}

.language-dropdown a:last-child {
    border-bottom: none;
}

.language-dropdown a:hover {
    background-color: rgb(239, 239, 239);
}

.language-selector:hover .language-dropdown,
.language-dropdown:hover {
    display: block;
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 25px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #1D1D1D;
    margin: 4px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}