/* Homepage-specific styles */

.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1400px;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.search-section {
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    align-items: center;
}

#username {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

.result {
    animation: fadeIn 0.5s ease-in;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 100%; /* Take full height of parent */
    display: flex;
    flex-direction: column;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    border: 3px solid #e1e1e1;
}

.profile-info h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #333;
}

.profile-info p {
    color: #666;
    font-size: 1rem;
}

.stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
}

.stat-item {
    text-align: center;
}

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

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

.bio {
    padding-top: 20px;
}

.bio p {
    color: #333;
    line-height: 1.6;
}

.additional-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.info-value {
    color: #333;
    font-size: 0.9rem;
    text-align: right;
}

.info-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-link:hover {
    text-decoration: underline;
}

.verified-badge {
    color: #1da1f2;
    font-weight: bold;
}

.private-badge {
    color: #e74c3c;
    font-weight: bold;
}

.public-badge {
    color: #27ae60;
    font-weight: bold;
}

/* Two-column layout */
.results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch; /* Make both columns equal height */
}

.profile-section {
    min-width: 0; /* Prevents grid overflow */
    display: flex;
    flex-direction: column;
}

.api-response-section {
    min-width: 0; /* Prevents grid overflow */
    display: flex;
    flex-direction: column;
}

/* API Response Card Styling */
.api-response-card {
    background: #1e1e1e;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Take full height of parent */
}

.api-response-header {
    background: #2d2d2d;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #404040;
}

.api-response-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

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

.copy-btn svg {
    width: 14px;
    height: 14px;
}

.json-viewer {
    flex: 1; /* Take remaining space */
    overflow-y: auto;
    background: #1e1e1e;
    min-height: 400px; /* Minimum height for better UX */
}

.json-content {
    margin: 0;
    padding: 30px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e6e6e6;
    background: transparent;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* JSON Syntax Highlighting */
.json-key {
    color: #79c0ff;
}

.json-string {
    color: #a5d6ff;
}

.json-number {
    color: #79c0ff;
}

.json-boolean {
    color: #ff7b72;
}

.json-null {
    color: #ff7b72;
}

.json-punctuation {
    color: #e6e6e6;
}

/* Custom scrollbar for JSON viewer */
.json-viewer::-webkit-scrollbar {
    width: 8px;
}

.json-viewer::-webkit-scrollbar-track {
    background: #2d2d2d;
}

.json-viewer::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.json-viewer::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Easy Integration Section */
.integration-section {
    margin-top: 60px;
    padding: 60px 20px;
    background: #f8f9fa;
}

.integration-container {
    max-width: 1200px;
    margin: 0 auto;
}

.integration-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 700;
}

.code-block {
    background: #2d3748;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 40px;
}

.code-header {
    background: #1a202c;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4a5568;
}

.code-method {
    background: #48bb78;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.copy-code-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.copy-code-btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

.copy-code-btn svg {
    width: 14px;
    height: 14px;
}

.code-content {
    padding: 25px;
    background: #2d3748;
}

.api-url {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: #e2e8f0;
    display: block;
    word-break: break-all;
}

.url-base {
    color: #81c784;
}

.url-params {
    color: #64b5f6;
}

.param-value {
    color: #ffb74d;
}

.integration-examples {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.integration-examples h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
}

.example-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-btn:hover {
    color: #667eea;
}

.example-content {
    position: relative;
}

.example-block {
    display: none;
}

.example-block.active {
    display: block;
}

.example-block pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 25px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.example-block code {
    color: #e2e8f0;
}

/* Syntax Highlighting for Code Examples */
.example-block pre code,
.response-content pre code {
    color: #e2e8f0;
}

/* cURL Syntax Highlighting */
.curl-command {
    color: #81c784; /* Green for curl command */
}

.curl-flag {
    color: #64b5f6; /* Blue for flags like -X, -H */
}

.curl-method {
    color: #ffb74d; /* Orange for HTTP methods */
}

.curl-url {
    color: #a5d6ff; /* Light blue for URLs */
}

.curl-header {
    color: #f48fb1; /* Pink for headers */
}

/* JavaScript Syntax Highlighting */
.js-keyword {
    color: #ff7b72; /* Red for keywords like const, let, function */
}

.js-function {
    color: #d2a8ff; /* Purple for function names */
}

.js-string {
    color: #a5d6ff; /* Light blue for strings */
}

.js-method {
    color: #79c0ff; /* Blue for methods like .then, .catch */
}

.js-property {
    color: #79c0ff; /* Blue for properties */
}

.js-operator {
    color: #ff7b72; /* Red for operators */
}

.js-comment {
    color: #8b949e; /* Gray for comments */
    font-style: italic;
}

.js-variable {
    color: #ffa657; /* Orange for variables */
}

/* Python Syntax Highlighting */
.py-keyword {
    color: #ff7b72; /* Red for keywords like import, def, class */
}

.py-function {
    color: #d2a8ff; /* Purple for function names */
}

.py-string {
    color: #a5d6ff; /* Light blue for strings */
}

.py-method {
    color: #79c0ff; /* Blue for methods */
}

.py-module {
    color: #79c0ff; /* Blue for module names */
}

.py-variable {
    color: #ffa657; /* Orange for variables */
}

.py-comment {
    color: #8b949e; /* Gray for comments */
    font-style: italic;
}

/* JSON Syntax Highlighting Enhancement */
.json-url {
    color: #a5d6ff; /* Light blue for URLs in JSON */
}

/* Response Examples Styling */
.response-examples {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.response-examples h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
}

.response-content {
    position: relative;
}

.response-content pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 25px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.response-content code {
    color: #e2e8f0;
}

/* Advanced Features Section */
.features-section {
    padding: 60px 20px;
    background: white;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Pricing Section */
.pricing-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.pricing-card:nth-child(2) {
    border-color: #667eea;
    transform: scale(1.05);
    position: relative;
}

.pricing-card:nth-child(2):before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price {
    margin-bottom: 25px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.price-period {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.price-features {
    margin-bottom: 30px;
}

.price-features p {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
    font-weight: 500;
}

/* Footer Section */
.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.footer-social {
    display: flex;
    align-items: center;
}

.youtube-link {
    color: #ff0000;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-link:hover {
    background: rgba(255, 0, 0, 0.1);
    transform: translateY(-2px);
}

.youtube-link svg {
    width: 24px;
    height: 24px;
}

/* Authentication Form Styles */
.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

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

.auth-switch {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
}

.auth-switch p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Responsive design for homepage sections */
@media (max-width: 1200px) {
    .results-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .api-response-card {
        order: 2;
    }
    
    .profile-section {
        order: 1;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .profile-card {
        padding: 20px;
    }
    
    .profile-pic {
        width: 60px;
        height: 60px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .api-response-header {
        padding: 15px 20px;
    }
    
    .api-response-header h3 {
        font-size: 1.1rem;
    }
    
    .json-content {
        padding: 20px;
        font-size: 0.8rem;
    }
    
    .copy-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .integration-section,
    .features-section,
    .pricing-section {
        padding: 40px 15px;
    }
    
    .integration-title,
    .features-title,
    .pricing-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 25px 20px;
        gap: 15px;
    }
    
    .feature-number {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .feature-content h3 {
        font-size: 1.2rem;
    }
    
    .feature-content p {
        font-size: 0.95rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card {
        padding: 30px 25px;
    }
    
    .pricing-card:nth-child(2) {
        transform: none;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .pricing-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .code-header {
        padding: 12px 20px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .code-content {
        padding: 20px;
    }
    
    .api-url {
        font-size: 0.85rem;
    }
    
    .integration-examples {
        padding: 20px;
    }
    
    .example-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .example-block pre {
        padding: 20px;
        font-size: 0.8rem;
    }
    
    .response-examples {
        padding: 20px;
        margin-top: 20px;
    }
    
    .response-content pre {
        padding: 20px;
        font-size: 0.8rem;
    }
    
    .footer {
        padding: 30px 15px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-logo h1 {
        font-size: 1.3rem;
    }
    
    .youtube-link svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 600px) {
    .stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .integration-section {
        margin-top: 40px;
    }
}
