/* Audio Player Styles */
.audio-player-wrapper {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 3rem;
}

.audio-player {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Player Controls */
.player-controls {
    margin-right: 1.5rem;
}

.play-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3e3d3d;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    flex-shrink: 0;
}

.play-button:hover {
    background-color: #4e4d4d;
}

.play-button:focus {
    box-shadow: none;
}

.play-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.pause-icon {
    display: none;
}

.play-button.playing .play-icon {
    display: none;
}

.play-button.playing .pause-icon {
    display: block;
}

/* Player Info */
.player-info {
    flex: 1;
    margin-right: 1.5rem;
}

.track-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.track-title {
    font-weight: 500;
    color: #333;
}

.track-time {
    color: #666;
    font-size: 0.9rem;
}

.time-separator {
    margin: 0 0.25rem;
}

.progress-container {
    width: 100%;
}

.progress-bar {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.progress-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #1473e6;
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* Track Toggle */
.track-toggle {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.toggle-label {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0.5rem;
    transition: color 0.2s, font-weight 0.2s;
}

.toggle-label.active {
    color: #1473e6;
    font-weight: 500;
}

/* Toggle Switch with Tooltips */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(61 61 61);
    transition: .3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.toggle-input:checked + .toggle-slider {
    background-color: #cb5b5b;
}

.toggle-input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Tooltips for toggle */
.toggle-tooltip {
    position: absolute;
    left: -75px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    font-family: "ivystyle-sans", sans-serif;
    font-weight: 300;
    white-space: nowrap;
}

/* No need for separate positioning for original/enhanced */
.toggle-tooltip.original,
.toggle-tooltip.enhanced {
    left: -75px;
}

/* Show appropriate tooltip based on toggle state */
.toggle-switch:hover .toggle-tooltip.original {
    opacity: 0;
}

.toggle-switch:hover .toggle-tooltip.enhanced {
    opacity: 0;
}

/* Show only relevant tooltip based on toggle state */
.toggle-switch:hover input:not(:checked) ~ .toggle-tooltip.original {
    opacity: 1;
}

.toggle-switch:hover input:checked ~ .toggle-tooltip.enhanced {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .audio-player {
        flex-direction: column;
        align-items: center;
    }
    
    .player-controls {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .player-info {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .track-toggle {
        margin-top: 0.5rem;
    }
    
    .toggle-tooltip {
        left: -65px;
    }
}

@media (max-width: 480px) {
    .audio-player-wrapper {
        padding: 0 1.5rem;
    }
}

/* Audio Comparison Player - New Design */
.audio-comparison-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.audio-comparison-player {
    background: linear-gradient(to right, #1e1e24, #2d2d3a);
    border-radius: 8px;
    padding: 16px;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 20px 0;
    max-width: 100%;
}

/* Waveform Container - Reduced height */
.waveform-container {
    height: 80px; /* Reduced from original height but not too drastic */
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    position: relative;
    margin-bottom: 16px;
    overflow: hidden;
}

.waveform-visualization {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 0 2px;
}

.waveform-bar {
    flex: 1;
    background-color: rgba(20, 115, 230, 0.7);
    margin: 0 1px;
    border-radius: 1px 1px 0 0;
    transition: height 0.1s ease;
}

.playhead {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: #fff;
    z-index: 2;
}

/* Player Controls - Keep original layout but slightly more compact */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mode Selector - Keep the original toggle style */
.mode-selector {
    display: flex;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 3px;
}

.mode-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.mode-button:hover {
    color: rgba(255, 255, 255, 0.9);
}

.mode-button.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Playback Controls */
.playback-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.play-pause-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.play-pause-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.play-pause-button .play-icon {
    display: block;
    font-size: 14px;
}

.play-pause-button .pause-icon {
    display: none;
    font-size: 14px;
}

.play-pause-button.playing .play-icon {
    display: none;
}

.play-pause-button.playing .pause-icon {
    display: block;
}

.time-display {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .audio-comparison-player {
        padding: 12px;
    }
    
    .waveform-container {
        height: 70px;
        margin-bottom: 12px;
    }
    
    .mode-button {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .play-pause-button {
        width: 32px;
        height: 32px;
    }
}

/* Wrapper for players and caption */
.audio-players-wrapper {
    position: relative;
    margin-bottom: 2.5rem; /* Space for caption */
}

/* Container for multiple players */
.audio-players-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Simple Audio Player */
.simple-audio-player {
    background: #111111;
    border-radius: 8px;
    padding: 1.5rem;
    color: #363636;
    font-family: "ivystyle-sans", sans-serif;
    font-weight: 100;
    width: calc(50% - 0.75rem);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-sizing: border-box;
    border: 1px solid #fefcdd3b;
    background-image: url(../assets/bg.svg);
    background-position: left;
}

/* Shared Player Caption */
.player-caption {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    color: #666;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-family: "ivystyle-sans", sans-serif;
    font-weight: 300;
    margin-top: 1rem;
    line-height: 1.5;
    letter-spacing: 0.01em;
    box-sizing: border-box;
    padding: 0 1rem; /* Add padding for smaller screens */
}

/* Show caption when any player is playing */
.audio-players-wrapper.playing .player-caption {
    opacity: 1;
}

/* Font Awesome icon styling */
.play-button .play-icon,
.play-button .pause-icon {
    font-size: 14px;
}

.play-button .play-icon {
    display: block;
}

.play-button .pause-icon {
    display: none;
}

.play-button.playing .play-icon {
    display: none;
}

.play-button.playing .pause-icon {
    display: block;
}

/* Track Info */
.track-info {
    flex: 1;
    min-width: 0; /* Prevent overflow issues */
}

/* Track name - Updated with your styling */
.track-name {
    margin: 0;
    font-size: var(--font-size-base, 1rem);
    font-weight: 100;
    color: #fefcde;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "ivystyle-sans", sans-serif;
}

/* Toggle Switch */
.audio-toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Toggle slider - Updated with your styling */
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(61 61 61);
    transition: .3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #cb5b5b;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .audio-players-container {
        padding: 0 1rem; /* Add padding on smaller screens */
        gap: 1rem; /* Reduce gap on smaller screens */
    }
    
    .simple-audio-player {
        width: 100%; /* Full width on smaller screens */
        margin-bottom: 1rem; /* Add space between stacked players */
    }
    
    .player-caption {
        padding: 0 1rem; /* Consistent padding */
    }
}

@media (max-width: 480px) {
    .audio-players-container {
        padding: 0 1rem; /* Maintain padding on very small screens */
    }
    
    .simple-audio-player {
        padding: 1.25rem; /* Slightly reduce padding inside players */
    }
    
    .track-info {
        order: 2;
        width: calc(100% - 50px);
    }
    
    .play-button {
        order: 1;
    }
    
    .audio-toggle {
        order: 3;
        margin-left: auto;
        margin-top: 0.75rem;
    }
    
    .player-caption {
        padding: 0 1rem;
        font-size: 0.9rem; /* Slightly smaller on very small screens */
    }
}

/* Feature Boxes Styles - Updated typography */
.feature-boxes-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 3rem 0;
    box-sizing: border-box;
}

.feature-boxes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.feature-box {
    flex: 1;
    min-width: calc(50% - 0.75rem);
    background: #111111;
    border-radius: 8px;
    padding: 1.5rem;
    box-sizing: border-box;
    text-decoration: none;
    transition: transform 0.2s ease;
    display: block;
    border: 1px solid #fefcdd3b;
    background-image: url(../assets/bg.svg);
    background-position: left;
}

.feature-box:hover {
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 1.5rem;
    color: #fefcdd;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-family: "ivystyle-sans", sans-serif;
    letter-spacing: normal;
    font-weight: 400;
    font-size: 1rem;
    margin: 0 0 1rem 0;
    color: #fefcdd;
}

.feature-description {
    font-family: "ivystyle-sans", sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* Tag style for Claude mentions */
.tag {
    display: inline-block;
    background-color: #d97757;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
    font-family: "ivypresto-headline", serif;
}

/* Make sure the tag looks good on hover */
.feature-box:hover .tag {
    background-color: #e88968;
}

/* Ensure proper vertical alignment with the title */
.feature-title .tag {
    position: relative;
    top: -1px;
}

/* Responsive adjustments for feature boxes */
@media (max-width: 768px) {
    .feature-boxes-container {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .feature-box {
        min-width: 100%;
        margin-bottom: 1rem;
    }
    
    .tag {
        font-size: 1rem;
        padding: 1px 5px;
    }
}

@media (max-width: 480px) {
    .feature-boxes-container {
        padding: 0 1rem;
    }
    
    .feature-box {
        padding: 1.25rem;
    }
    
    .feature-icon {
        margin-bottom: 1rem;
    }
} 