/* ============================================
   ELECTRONIC BEAT PAD - COMPLETE CSS
   16-Pad DJ Launchpad 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, #00c853 0%, #00e676 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;
}

/* Beat Pad Container */
.beatpad-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;
}

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

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

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

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

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

/* Beat Pad Controls */
.beatpad-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,
#bpmControl {
    width: 150px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

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

#volumeValue,
#bpmValue {
    font-weight: 700;
    color: #00c853;
    min-width: 45px;
}

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

.control-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #00c853 0%, #00e676 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(0, 200, 83, 0.3);
}

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

.control-btn.recording {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
    animation: recordPulse 1s infinite alternate;
}

@keyframes recordPulse {
    from { box-shadow: 0 0 10px rgba(244, 67, 54, 0.5); }
    to { box-shadow: 0 0 25px rgba(244, 67, 54, 0.8); }
}

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

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

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

.pattern-btn {
    padding: 20px 15px;
    background: white;
    border: 2px solid #00bfa5;
    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(0, 191, 165, 0.3);
    border-color: #00897b;
}

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

.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: patternPulse 0.5s infinite alternate;
}

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

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

.pattern-status {
    font-size: 14px;
    color: #00695c;
    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;
}

/* Pad Grid Section */
.pad-grid-section {
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    position: relative;
}

.grid-label {
    text-align: center;
    margin-bottom: 25px;
}

.recording-indicator {
    display: none;
    font-size: 16px;
    font-weight: 700;
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    animation: recordBlink 1s infinite;
}

.recording-indicator.active {
    display: inline-block;
}

@keyframes recordBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loop-status {
    display: block;
    font-size: 14px;
    color: #00e676;
    font-weight: 600;
    margin-top: 10px;
}

/* 16-Pad Grid */
.pad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.beat-pad {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #424242 0%, #303030 100%);
    border: 3px solid #555;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5),
                inset 0 2px 5px rgba(255,255,255,0.1);
}

.beat-pad:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.4),
                inset 0 2px 5px rgba(255,255,255,0.2);
    border-color: #00e676;
}

/* Individual pad colors */
.beat-pad[data-pad="1"] { background: linear-gradient(135deg, #ff1744 0%, #d50000 100%); }
.beat-pad[data-pad="2"] { background: linear-gradient(135deg, #ff6d00 0%, #f57c00 100%); }
.beat-pad[data-pad="3"] { background: linear-gradient(135deg, #ffc400 0%, #ffab00 100%); }
.beat-pad[data-pad="4"] { background: linear-gradient(135deg, #00e676 0%, #00c853 100%); }

.beat-pad[data-pad="5"] { background: linear-gradient(135deg, #00e5ff 0%, #00b8d4 100%); }
.beat-pad[data-pad="6"] { background: linear-gradient(135deg, #2979ff 0%, #2962ff 100%); }
.beat-pad[data-pad="7"] { background: linear-gradient(135deg, #651fff 0%, #6200ea 100%); }
.beat-pad[data-pad="8"] { background: linear-gradient(135deg, #d500f9 0%, #aa00ff 100%); }

.beat-pad[data-pad="9"] { background: linear-gradient(135deg, #f50057 0%, #c51162 100%); }
.beat-pad[data-pad="10"] { background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%); }
.beat-pad[data-pad="11"] { background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%); }
.beat-pad[data-pad="12"] { background: linear-gradient(135deg, #78909c 0%, #546e7a 100%); }

.beat-pad[data-pad="13"] { background: linear-gradient(135deg, #c0ca33 0%, #9e9d24 100%); }
.beat-pad[data-pad="14"] { background: linear-gradient(135deg, #00acc1 0%, #00838f 100%); }
.beat-pad[data-pad="15"] { background: linear-gradient(135deg, #5e35b1 0%, #4527a0 100%); }
.beat-pad[data-pad="16"] { background: linear-gradient(135deg, #ef6c00 0%, #e65100 100%); }

.beat-pad.active {
    transform: scale(0.95);
    box-shadow: 0 0 30px currentColor,
                inset 0 4px 10px rgba(0,0,0,0.5);
    filter: brightness(1.5);
}

.pad-label {
    font-size: 13px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    text-align: center;
}

.pad-number {
    font-size: 18px;
    font-weight: 900;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.key-hint {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.4);
    padding: 3px 8px;
    border-radius: 4px;
}

/* 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: #00c853;
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 13px;
    margin: 0 2px;
}

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

.beatpad-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: #00c853;
    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: #00c853;
}

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

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

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

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

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

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

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

    .pad-grid-section {
        padding: 25px 20px;
    }

    .pad-grid {
        gap: 10px;
    }

    .beat-pad {
        padding: 10px;
    }

    .pad-label {
        font-size: 11px;
    }

    .pad-number {
        font-size: 16px;
    }

    .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) {
    .pad-grid {
        gap: 8px;
    }

    .beat-pad {
        padding: 8px;
        border-radius: 10px;
    }

    .pad-label {
        font-size: 10px;
    }

    .pad-number {
        font-size: 14px;
    }

    .key-hint {
        font-size: 9px;
        padding: 2px 6px;
    }

    .control-buttons {
        width: 100%;
    }

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