/* ============================================
   VIRTUAL SANTOOR - COMPLETE CSS
   Indian Classical String Instrument
   ============================================ */

/* Tool Page Common Styles */
.tool-page {
    padding-top: 0;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

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

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

.breadcrumb .separator {
    margin: 0 10px;
    color: #ddd;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

.tool-header {
    background: linear-gradient(135deg, #ff6d00 0%, #ff9800 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.tool-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.tool-icon-large {
    font-size: 72px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.tool-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
}

.tool-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 16px;
}

.meta-separator {
    opacity: 0.5;
}

.tool-content {
    padding: 60px 20px;
    background: #f8f9fa;
}

/* Santoor Container */
.santoor-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 15px 60px rgba(0,0,0,0.12);
    overflow: hidden;
}

.santoor-header {
    background: linear-gradient(135deg, #ff6d00 0%, #ff9800 100%);
    padding: 45px 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.santoor-header::before {
    content: '🎵';
    position: absolute;
    font-size: 180px;
    opacity: 0.1;
    top: -30px;
    right: -30px;
}

.santoor-header h2 {
    font-size: 38px;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.santoor-header p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

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

/* Santoor Controls */
.santoor-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 15px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.control-icon {
    font-size: 20px;
}

#volumeControl,
#tempoControl {
    width: 150px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

#volumeControl::-webkit-slider-thumb,
#tempoControl::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    background: #ff6d00;
    border-radius: 50%;
    cursor: pointer;
}

#volumeValue,
#tempoValue {
    font-weight: 700;
    color: #ff6d00;
    min-width: 45px;
}

.control-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6d00 0%, #ff9800 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 109, 0, 0.4);
}

/* Patterns Section */
.patterns-section {
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    border-radius: 15px;
}

/* Upload Section */
.upload-section {
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 15px;
}

.upload-section h3 {
    font-size: 24px;
    color: #1b5e20;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

.upload-description {
    text-align: center;
    color: #2e7d32;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.upload-area {
    margin-bottom: 20px;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 30px;
    background: white;
    border: 3px dashed #4caf50;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-label:hover {
    border-color: #2e7d32;
    background: #f1f8e9;
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 48px;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #1b5e20;
}

.upload-hint {
    font-size: 12px;
    color: #558b2f;
    opacity: 0.8;
}

.upload-status {
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.upload-status p {
    margin: 0;
    color: #2e7d32;
    font-weight: 500;
}

.upload-status.success {
    background: #c8e6c9;
    border: 2px solid #4caf50;
}

.upload-status.error {
    background: #ffcdd2;
    border: 2px solid #f44336;
}

.upload-status.analyzing {
    background: #fff9c4;
    border: 2px solid #fbc02d;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.upload-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.beat-info {
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #4caf50;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row strong {
    color: #1b5e20;
}

.info-row span {
    color: #2e7d32;
    font-weight: 600;
}

.patterns-section h3 {
    font-size: 24px;
    color: #880e4f;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.pattern-btn {
    padding: 20px 15px;
    background: white;
    border: 2px solid #e91e63;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #333;
}

.pattern-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.3);
    border-color: #c2185b;
}

.pattern-btn.selected {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: white;
    border-color: #c2185b;
}

.pattern-icon {
    font-size: 32px;
}

.pattern-name {
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

.pattern-name small {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

.pattern-btn.playing {
    animation: raagPulse 0.6s infinite alternate;
}

@keyframes raagPulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); box-shadow: 0 0 20px rgba(233, 30, 99, 0.5); }
}

.pattern-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.pattern-status {
    font-size: 14px;
    color: #880e4f;
    font-weight: 600;
    padding: 8px 15px;
    background: white;
    border-radius: 8px;
    min-height: 40px;
    min-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Santoor Strings Section */
.santoor-grid-section {
    margin-bottom: 30px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #3e2723 0%, #5d4037 100%);
    border-radius: 20px;
    position: relative;
}

.santoor-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern><rect width="100" height="100" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
    border-radius: 20px;
}

.grid-label {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

/* Santoor String Layout */
.santoor-strings {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.santoor-string {
    aspect-ratio: 0.7;
    background: linear-gradient(180deg, #ffd54f 0%, #ffb300 100%);
    border: 3px solid #f57f17;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4),
                inset 0 2px 8px rgba(255,255,255,0.3);
}

.santoor-string::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% - 20px);
    background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.1) 100%);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.santoor-string:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.6),
                inset 0 2px 8px rgba(255,255,255,0.4);
    border-color: #ffc107;
}

.santoor-string.active {
    transform: scale(0.95);
    box-shadow: 0 0 40px rgba(255, 193, 7, 0.8),
                inset 0 4px 15px rgba(0,0,0,0.3);
    filter: brightness(1.4);
    animation: stringVibrate 0.5s ease-out;
}

@keyframes stringVibrate {
    0%, 100% { transform: scale(0.95) translateX(0); }
    25% { transform: scale(0.95) translateX(-2px); }
    75% { transform: scale(0.95) translateX(2px); }
}

/* String Colors */
.santoor-string.komal {
    background: linear-gradient(180deg, #81c784 0%, #66bb6a 100%);
    border-color: #388e3c;
}

.santoor-string.lower {
    background: linear-gradient(180deg, #90caf9 0%, #64b5f6 100%);
    border-color: #1976d2;
}

.santoor-string.higher {
    background: linear-gradient(180deg, #f48fb1 0%, #ec407a 100%);
    border-color: #c2185b;
}

.string-label {
    font-size: 24px;
    font-weight: 700;
    color: #4e342e;
    text-shadow: 0 2px 4px rgba(255,255,255,0.5);
}

.string-name {
    font-size: 16px;
    font-weight: 700;
    color: #5d4037;
    text-shadow: 0 1px 3px rgba(255,255,255,0.4);
}

.key-hint {
    font-size: 12px;
    font-weight: 700;
    color: rgba(78, 52, 46, 0.8);
    background: rgba(255,255,255,0.3);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(78, 52, 46, 0.2);
}

/* Keyboard Shortcuts Info */
.keyboard-shortcuts {
    padding: 25px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 15px;
    margin-bottom: 20px;
}

.keyboard-shortcuts h4 {
    color: #0d47a1;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.shortcuts-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shortcut-item {
    color: #1565c0;
    font-size: 14px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    text-align: center;
}

.shortcut-item kbd {
    background: #1976d2;
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 13px;
    margin: 0 2px;
}

/* Santoor Info Box */
.santoor-info-box {
    padding: 30px;
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-radius: 15px;
}

.santoor-info-box h4 {
    color: #4a148c;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    padding: 20px;
    background: white;
    border-radius: 10px;
    color: #6a1b9a;
}

.info-item strong {
    display: block;
    color: #7b1fa2;
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 700;
}

/* SEO Content Section */
.seo-content {
    padding: 80px 20px;
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #333;
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #333;
}

.content-article p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.content-article strong {
    color: #333;
    font-weight: 700;
}

/* Related Tools */
.related-tools {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.related-tools h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #ff6d00;
}

.related-tool-card .tool-icon {
    font-size: 42px;
}

.related-tool-card .tool-name {
    font-weight: 700;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 32px;
    }
    
    .tool-subtitle {
        font-size: 16px;
    }
    
    .tool-icon-large {
        font-size: 52px;
    }
    
    .tool-meta {
        font-size: 14px;
    }

    .content-article h2 {
        font-size: 26px;
    }
    
    .content-article h3 {
        font-size: 20px;
    }
    
    .related-tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .santoor-header h2 {
        font-size: 28px;
    }

    .santoor-body {
        padding: 30px 20px;
    }

    .santoor-controls {
        flex-direction: column;
        padding: 20px;
    }

    .control-group {
        width: 100%;
        justify-content: center;
    }

    .patterns-section {
        padding: 25px 20px;
    }

    .upload-section {
        padding: 25px 20px;
    }

    .upload-label {
        padding: 30px 20px;
    }

    .upload-icon {
        font-size: 36px;
    }

    .upload-text {
        font-size: 14px;
    }

    .upload-controls {
        gap: 8px;
    }

    .patterns-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .santoor-grid-section {
        padding: 30px 20px;
    }

    .santoor-strings {
        gap: 12px;
    }

    .santoor-string {
        padding: 12px 8px;
    }

    .string-label {
        font-size: 20px;
    }

    .string-name {
        font-size: 14px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .related-tools {
        padding: 25px 20px;
    }

    .related-tools h3 {
        font-size: 24px;
    }

    .related-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .santoor-strings {
        gap: 10px;
    }

    .santoor-string {
        padding: 10px 6px;
        border-radius: 15px;
    }

    .string-label {
        font-size: 18px;
    }

    .string-name {
        font-size: 12px;
    }

    .key-hint {
        font-size: 10px;
        padding: 3px 8px;
    }

    .control-buttons {
        width: 100%;
    }

    .control-btn {
        flex: 1;
        min-width: 0;
        padding: 10px;
        font-size: 12px;
    }
}