@charset "UTF-8";

/* Genel Reset ve Ana Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Konteyner */
.container {
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.tagline {
    color: #666;
    font-size: 1rem;
}

/* Form Stili */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 25px;
}

/* Input Stili */
.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.url-input,
.description-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.url-input:focus,
.description-input:focus {
    outline: none;
    border-color: #667eea;
}

.description-input {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

/* Buton Stili */
.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
}

.btn:not(:disabled) {
    cursor: pointer;
}

/* Mesaj Stili */
.message-panel {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Sonuç Paneli */
.result-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #28a745;
}

/* Sonuç paneli tek başına gösterildiğinde merkezleme */
.result-section {
    margin-top: 0;
}

/* Sadece sonuç görünür olduğunda sayfa ortalaması */
.result-only {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.result-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #28a745;
    text-align: center;
    margin-bottom: 20px;
}

.url-display {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.url-label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.url-value {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.url-text {
    word-break: break-all;
    color: #333;
    font-size: 0.9rem;
    flex: 1;
    min-width: 200px;
}

.short-url-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    color: #333;
    min-width: 200px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.short-url-input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-copy {
    background: #17a2b8;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #138496;
}

/* Yeni URL Butonu */
.new-url-section {
    margin: 20px 0;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.btn-new-url {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-new-url:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header, .form-container, .result-container {
        padding: 20px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .url-value {
        flex-direction: column;
        align-items: stretch;
    }
    
    .short-url-input,
    .btn-copy {
        width: 100%;
        min-width: unset;
        margin-bottom: 5px;
    }
}

/* Çok küçük ekranlar */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    
    .header, .form-container, .result-container {
        padding: 15px;
    }
    
    .url-input,
    .description-input {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}