/* ============================================
   BONGO DRUMS - COMPLETE CSS
   Latin Percussion Virtual 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: #667eea;
}

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

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

.tool-header {
    background: linear-gradient(135deg, #d84315 0%, #ff5722 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: bounce 2s ease-in-out infinite;
}

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

.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;
}

/* Bongo Container */
.bongo-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;
}

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

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

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

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

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

/* Bongo Controls */
.bongo-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    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 {
    width: 150px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

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

#volumeValue {
    font-weight: 700;
    color: #d84315;
    min-width: 45px;
}

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

.control-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #d84315 0%, #ff5722 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(216, 67, 21, 0.3);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Rhythms Section */
.rhythms-section {
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 15px;
}

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

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

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

.rhythm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.3);
    border-color: #f57c00;
}

.rhythm-btn.selected {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border-color: #f57c00;
}

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

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

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

.rhythm-btn.playing {
    animation: rhythmPulse 0.5s infinite alternate;
}

@keyframes rhythmPulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

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

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

/* Bongo Set */
.bongo-set {
    margin-bottom: 30px;
    padding: 50px 30px;
    background: linear-gradient(135deg, #4a2c2a 0%, #3e2723 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.bongo-set::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.05) 0%, 
        rgba(255,255,255,0.02) 50%, 
        rgba(255,255,255,0.05) 100%);
}

.bongo-drums-container {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.bongo-drum {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.drum-label {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    padding: 10px 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}

/* Drum Heads */
.drum-head {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at 40% 40%, #d7ccc8 0%, #a1887f 100%);
    border: 8px solid #6d4c41;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6),
                inset 0 5px 15px rgba(255,255,255,0.2),
                inset 0 -5px 15px rgba(0,0,0,0.3);
}

/* Hembra (Large drum) - slightly bigger */
.hembra .drum-head {
    width: 300px;
    height: 300px;
}

/* Macho (Small drum) - slightly smaller */
.macho .drum-head {
    width: 260px;
    height: 260px;
}

/* Drum Zones */
.drum-zone {
    position: absolute;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 50%;
}

/* Center Zone */
.drum-zone.center {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(109, 76, 65, 0.6) 0%, rgba(93, 64, 55, 0.4) 100%);
    border: 3px solid rgba(255,255,255,0.3);
}

/* Edge Zone - Ring around center */
.drum-zone.edge {
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, transparent 40%, rgba(161, 136, 127, 0.4) 70%);
    border: 3px solid rgba(255,255,255,0.2);
}

/* Rim Zone - Outer ring */
.drum-zone.rim {
    width: 260px;
    height: 260px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, transparent 75%, rgba(215, 204, 200, 0.3) 90%);
    border: 3px solid rgba(255,255,255,0.1);
}

/* Adjust sizes for Hembra (larger) */
.hembra .drum-zone.center {
    width: 110px;
    height: 110px;
}

.hembra .drum-zone.edge {
    width: 200px;
    height: 200px;
}

.hembra .drum-zone.rim {
    width: 280px;
    height: 280px;
}

/* Adjust sizes for Macho (smaller) */
.macho .drum-zone.center {
    width: 90px;
    height: 90px;
}

.macho .drum-zone.edge {
    width: 160px;
    height: 160px;
}

.macho .drum-zone.rim {
    width: 240px;
    height: 240px;
}

/* Hover effects */
.drum-zone:hover {
    background-color: rgba(255, 193, 7, 0.3);
    border-color: #ffc107;
    transform: translate(-50%, -50%) scale(1.02);
}

.drum-zone.active {
    background-color: rgba(255, 193, 7, 0.6) !important;
    border-color: #ff9800;
    transform: translate(-50%, -50%) scale(0.98);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
}

.zone-label {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.5);
    padding: 6px 12px;
    border-radius: 8px;
}

.key-hint {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 5px;
}

/* Keyboard Shortcuts Info */
.keyboard-shortcuts {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 20px;
}

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

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

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

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

/* Bongo Info Box */
.bongo-info-box {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.bongo-info-box h4 {
    color: #333;
    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: #666;
}

.info-item strong {
    display: block;
    color: #d84315;
    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: #d84315;
}

.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));
    }

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

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

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

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

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

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

    .bongo-set {
        padding: 40px 20px;
    }

    .bongo-drums-container {
        gap: 50px;
    }

    .drum-head {
        width: 220px;
        height: 220px;
    }

    .hembra .drum-head {
        width: 240px;
        height: 240px;
    }

    .macho .drum-head {
        width: 200px;
        height: 200px;
    }

    .drum-zone.center {
        width: 80px;
        height: 80px;
    }

    .drum-zone.edge {
        width: 140px;
        height: 140px;
    }

    .drum-zone.rim {
        width: 200px;
        height: 200px;
    }

    .hembra .drum-zone.center {
        width: 90px;
        height: 90px;
    }

    .hembra .drum-zone.edge {
        width: 160px;
        height: 160px;
    }

    .hembra .drum-zone.rim {
        width: 220px;
        height: 220px;
    }

    .macho .drum-zone.center {
        width: 70px;
        height: 70px;
    }

    .macho .drum-zone.edge {
        width: 120px;
        height: 120px;
    }

    .macho .drum-zone.rim {
        width: 180px;
        height: 180px;
    }

    .zone-label {
        font-size: 14px;
        padding: 4px 10px;
    }

    .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) {
    .bongo-drums-container {
        gap: 30px;
    }

    .drum-head {
        width: 180px;
        height: 180px;
    }

    .hembra .drum-head {
        width: 200px;
        height: 200px;
    }

    .macho .drum-head {
        width: 160px;
        height: 160px;
    }

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

    .zone-label {
        font-size: 12px;
        padding: 3px 8px;
    }

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