* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

h1 {
    color: #24292e;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.input-section {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e1e4e8;
    border-radius: 6px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #0366d6;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.fetch-btn {
    background: #0366d6;
    color: white;
}

.fetch-btn:hover {
    background: #0256c2;
    transform: translateY(-1px);
}

.fetch-btn:active {
    transform: translateY(0);
}

.fetch-btn:disabled {
    background: #8c959f;
    cursor: not-allowed;
    transform: none;
}

.copy-btn {
    background: #28a745;
    color: white;
    margin-top: 15px;
    width: 100%;
}

.copy-btn:hover {
    background: #22863a;
}

.copy-btn.copied {
    background: #6f42c1;
}

.result-section {
    margin-top: 30px;
}

.result-label {
    font-weight: 600;
    color: #586069;
    margin-bottom: 10px;
    display: block;
}

.data-display {
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.error-message {
    background: #ffeef0;
    border: 1px solid #f85149;
    color: #cf222e;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.loading {
    text-align: center;
    color: #586069;
    padding: 20px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0366d6;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-message {
    background: #dafbe1;
    border: 1px solid #2da44e;
    color: #1a7f37;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 10px;
    display: none;
}

.success-message.show {
    display: block;
}

.profile-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.profile-header {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-username {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 12px;
}

.profile-bio {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
    margin-top: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.info-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.info-icon {
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    word-break: break-word;
}

.info-value.copyable {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-icon {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.info-item:hover .copy-icon {
    opacity: 1;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.links-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.link-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.link-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.toggle-btn {
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    color: #24292e;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: #0366d6;
    color: white;
    border-color: #0366d6;
}

.toggle-btn:hover {
    border-color: #0366d6;
}

.copy-feedback {
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    position: absolute;
    top: -30px;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.copy-feedback.show {
    opacity: 1;
}

.date-value {
    font-size: 0.95rem;
}
