/**
 * GC WP Tools - Responsive Styles
 * Modern ve kullanıcı dostu tasarım
 */

/* Ana container stilleri */
.gc-tool-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 30px;
    margin: 25px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.gc-tool-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Tüm araçlar wrapper */
.gc-all-tools-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Header stilleri */
.gc-tool-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.gc-tool-header h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gc-tool-description {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

/* Input ve Output grupları */
.gc-input-group,
.gc-output-group {
    margin-bottom: 20px;
}

.gc-input-group label,
.gc-output-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 500;
    font-size: 14px;
}

/* Input stilleri */
.gc-input,
.gc-output {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafafa;
}

.gc-input:focus {
    outline: none;
    border-color: #3498db;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.gc-output {
    background: #f8f9fa;
    color: #2c3e50;
}

textarea.gc-input,
textarea.gc-output {
    resize: vertical;
    min-height: 100px;
}

/* Output wrapper ile copy button */
.gc-output-wrapper {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.gc-output-wrapper .gc-output {
    flex: 1;
}

/* Button stilleri */
.gc-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 5px;
}

.gc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.gc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(102, 126, 234, 0.4);
}

.gc-btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.gc-btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(245, 87, 108, 0.4);
}

.gc-copy-btn {
    padding: 12px 15px;
    background: #ecf0f1;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gc-copy-btn:hover {
    background: #3498db;
    border-color: #3498db;
    transform: scale(1.05);
}

.gc-copy-btn.copied {
    background: #27ae60;
    border-color: #27ae60;
}

/* Button group */
.gc-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

/* Options group - Şifre oluşturucu için */
.gc-options-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.gc-option-row {
    margin-bottom: 20px;
}

.gc-option-row label {
    display: block;
    margin-bottom: 10px;
    color: #34495e;
    font-weight: 500;
}

/* Slider stilleri */
.gc-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gc-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #dfe6e9;
    outline: none;
    -webkit-appearance: none;
}

.gc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gc-slider::-webkit-slider-thumb:hover {
    background: #764ba2;
    transform: scale(1.2);
}

.gc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.gc-slider::-moz-range-thumb:hover {
    background: #764ba2;
    transform: scale(1.2);
}

.gc-slider-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #667eea;
    font-size: 16px;
}

/* Checkbox group */
.gc-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.gc-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.gc-checkbox:hover {
    background: #ffffff;
}

.gc-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.gc-checkbox span {
    color: #2c3e50;
    font-size: 14px;
}

/* Şifre güvenlik göstergesi */
.gc-password-strength {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.strength-label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 500;
    font-size: 13px;
}

.strength-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.4s ease;
    border-radius: 5px;
}

.strength-fill.weak {
    width: 33%;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.strength-fill.medium {
    width: 66%;
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.strength-fill.strong {
    width: 100%;
    background: linear-gradient(90deg, #27ae60, #229954);
}

.strength-text {
    font-size: 13px;
    font-weight: 600;
}

.strength-text.weak {
    color: #e74c3c;
}

.strength-text.medium {
    color: #f39c12;
}

.strength-text.strong {
    color: #27ae60;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .gc-tool-container {
        padding: 20px;
        margin: 15px 0;
    }
    
    .gc-tool-header h3 {
        font-size: 20px;
    }
    
    .gc-btn-group {
        flex-direction: column;
    }
    
    .gc-btn {
        width: 100%;
        justify-content: center;
    }
    
    .gc-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .gc-output-wrapper {
        flex-direction: column;
    }
    
    .gc-copy-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gc-tool-container {
        padding: 15px;
        border-radius: 8px;
    }
    
    .gc-tool-header h3 {
        font-size: 18px;
    }
    
    .gc-input,
    .gc-output {
        font-size: 14px;
        padding: 10px;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gc-tool-container {
    animation: fadeIn 0.5s ease;
}

/* Başarı mesajı */
.gc-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   YENİ ARAÇLAR İÇİN EK STİLLER (v2.0)
   ======================================== */

/* Section başlıkları */
.gc-section-title {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gc-section-title:first-child {
    margin-top: 0;
}

/* Stats Grid - Karakter Sayacı için */
.gc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.gc-stat-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.gc-stat-item:hover {
    transform: translateY(-3px);
}

.gc-stat-item .stat-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gc-stat-item .stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

/* Conversion Results - Byte Converter için */
.gc-conversion-results {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.conversion-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.conversion-item:hover {
    border-left-width: 6px;
    padding-left: 17px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.conversion-item:last-child {
    margin-bottom: 0;
}

.conversion-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.conversion-item span {
    color: #667eea;
    font-weight: 600;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* JSON Status Message */
.json-status {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.json-status:empty {
    display: none;
}

/* Color Preview - Renk Dönüştürücü için */
.color-preview {
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.1);
}

.color-preview:hover {
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.1);
}

/* Select ve Input ek düzenlemeleri */
select.gc-input {
    cursor: pointer;
    background-color: white;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23667eea%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
    padding-right: 35px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="number"].gc-input,
input[type="datetime-local"].gc-input,
input[type="color"].color-picker {
    cursor: pointer;
}

input[type="color"].color-picker {
    width: 60px;
    height: 48px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 3px;
}

input[type="color"].color-picker:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

/* Grid layouts for better organization */
.gc-option-row {
    margin-bottom: 15px;
}

.gc-option-row:last-child {
    margin-bottom: 0;
}

/* Timestamp tool specific */
hr {
    border: none;
    border-top: 2px dashed #e0e0e0;
    margin: 25px 0;
}

/* Responsive improvements for new tools */
@media (max-width: 768px) {
    .gc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gc-stat-item {
        padding: 15px 10px;
    }
    
    .gc-stat-item .stat-value {
        font-size: 24px;
    }
    
    .conversion-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .gc-section-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .gc-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .gc-section-title {
        font-size: 20px;
    }
    
    .conversion-item {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* Loading state */
.gc-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.gc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltips for better UX */
[title] {
    cursor: help;
}

/* Badge styling */
.gc-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.gc-badge-new {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.gc-badge-popular {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

/* Print styles */
@media print {
    .gc-btn,
    .gc-copy-btn {
        display: none;
    }
    
    .gc-tool-container {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

