/**
 * Hash Generator Component Styles
 * Version: 1.0
 *
 * Mobile-first responsive styles for hash generation tool
 * with card-based results display and copy functionality.
 */

/* Container Layout - Mobile First */
.hash-generator-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Desktop: Side-by-side layout */
@media (min-width: 768px) {
    .hash-generator-container {
        flex-direction: row;
        gap: 20px;
    }

    .hash-input-section,
    .hash-results-section {
        flex: 1;
    }
}

/* Input Section */
.hash-input-section textarea {
    width: 100%;
    min-height: 200px;
    font-family: monospace;
    font-size: 14px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

/* Results Section */
.hash-results-section {
    max-height: 600px;
    overflow-y: auto;
}

/* Hash Result Item Card */
.hash-result-item {
    margin-bottom: 12px;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: box-shadow 0.2s;
}

.hash-result-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Hash Result Header */
.hash-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.hash-algo-name {
    font-weight: 600;
    color: #2563eb;
    font-size: 0.95em;
    text-transform: uppercase;
}

/* Hash Value Display */
.hash-value {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.85em;
    word-break: break-all;
    color: #374151;
    background-color: #f9fafb;
    padding: 8px;
    border-radius: 4px;
    line-height: 1.6;
}

/* Copy Button */
.hash-result-item .copy-btn {
    padding: 6px 10px;
    font-size: 0.75em;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.hash-result-item .copy-btn:hover {
    background-color: #059669;
}

.hash-result-item .copy-btn.copied {
    background-color: #6366f1;
}

/* Mobile optimization for copy button */
@media (max-width: 767px) {
    .hash-result-item .copy-btn {
        padding: 4px 8px;
        font-size: 0.7em;
        min-width: 50px;
    }

    .hash-result-header {
        gap: 8px;
    }

    .hash-algo-name {
        font-size: 0.85em;
    }
}

/* Hash Count Badge */
.hash-count-badge {
    display: inline-block;
    background-color: #eff6ff;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Button Group */
.hash-generator-container .button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hash-generator-container .btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.hash-generator-container .btn-primary {
    background-color: #1988FF;
    color: white;
}

.hash-generator-container .btn-primary:hover {
    background-color: #0066cc;
}

.hash-generator-container .btn-secondary {
    background-color: #6b7280;
    color: white;
}

.hash-generator-container .btn-secondary:hover {
    background-color: #4b5563;
}
