/* ba.ro 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.auth-section {
    margin-bottom: 2rem;
}

.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #4285f4;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    justify-content: center;
    min-width: 200px;
}

.google-btn:hover {
    background: #3367d6;
    transform: translateY(-1px);
}

.url-form {
    display: none;
}

.url-form.show {
    display: block;
}

.input-group {
    margin-bottom: 1rem;
}

.url-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.url-input:focus {
    outline: none;
    border-color: #667eea;
}

.shorten-btn {
    background: #667eea;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-bottom: 1rem;
}

.shorten-btn:hover {
    background: #5a6fd8;
}

.shorten-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.user-info {
    display: none;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.user-info.show {
    display: block;
}

.logout-btn {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    float: right;
}

.result {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    display: none;
}

.result.show {
    display: block;
}

.short-url {
    font-weight: bold;
    color: #667eea;
    word-break: break-all;
    margin: 0.5rem 0;
}

.copy-btn {
    margin-top: 8px;
    padding: 6px 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.stats-section {
    margin-top: 2rem;
    text-align: left;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.section-title {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.link-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.link-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.link-code {
    font-family: Monaco, Consolas, monospace;
    font-weight: bold;
    color: #667eea;
    font-size: 0.9rem;
}

.link-url {
    color: #666;
    font-size: 0.8rem;
    word-break: break-all;
    margin-bottom: 0.5rem;
}

.link-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #888;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
}

.delete-btn:hover {
    background: #c82333;
}

.empty-state {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-style: italic;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        margin: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .link-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .delete-btn {
        margin-top: 0.5rem;
        align-self: flex-end;
        width: fit-content;
    }
}
