/* style.css - EZRoute URL Shortener */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #2d3436;
}

.container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.logo {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    font-weight: 300;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 2rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.url-form {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: #2d3436;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.input-group input {
    flex: 1;
    min-width: 200px;
    padding: 0.9rem 1rem;
    border: 2px solid #dfe6e9;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    direction: ltr;
    text-align: left;
}

.input-group input:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.btn-primary {
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #5b4cdb;
}

.btn-primary:active {
    transform: scale(0.98);
}

.message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.message.error {
    background: #ffeaa7;
    color: #d63031;
    border-right: 4px solid #d63031;
}

.message.success {
    background: #dfe6e9;
    color: #00b894;
    border-right: 4px solid #00b894;
    margin-bottom: 1rem;
}

.result-box {
    margin-top: 1.5rem;
    background: #f8f9fa;
    border-radius: 14px;
    padding: 1.25rem;
}

.short-link-display {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.short-link-display input {
    flex: 1;
    min-width: 200px;
    padding: 0.7rem 1rem;
    border: 2px solid #dfe6e9;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.95rem;
    background: white;
    direction: ltr;
    text-align: left;
    color: #2d3436;
}

.btn-copy {
    background: #00b894;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-copy:hover {
    background: #00a381;
}

.original-url-hint {
    font-size: 0.85rem;
    color: #636e72;
    margin-top: 0.5rem;
    word-break: break-all;
}

.original-url-hint span {
    color: #2d3436;
    font-weight: 500;
}

footer {
    margin-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

footer .domain {
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 500px) {
    .card {
        padding: 1.5rem;
    }
    .logo {
        font-size: 2.4rem;
    }
    .input-group {
        flex-direction: column;
    }
    .btn-primary {
        width: 100%;
    }
}