/* Public CSS - Styles specific to public pages (homepage, terms, privacy, mcp-ref) */

/* Homepage Styles */
body.homepage {
    background: linear-gradient(135deg, var(--purple) 0%, #764ba2 100%);
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    text-align: center;
    color: var(--white);
}

h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.description {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.5;
    opacity: 0.9;
}

.features {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 800px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    margin-top: 32px;
    padding: 14px 32px;
    background: var(--white);
    color: var(--purple);
    text-decoration: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Terms/Privacy/MCP Reference Styles */
.diagonal-bg {
    position: fixed;
    top: -150px;
    left: -120px;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(151deg, var(--orange) 0%, var(--orange) 50%, var(--white) 50%, var(--white) 100%);
}

body.terms-page .container,
body.privacy-page .container {
    max-width: 900px;
    padding: 60px 20px;
}

body.terms-page h1,
body.privacy-page h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 40px;
}

.content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
    color: var(--text-primary);
}

.content p {
    margin-bottom: 20px;
}

.content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--black);
}

.content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.content ul {
    margin-left: 24px;
    margin-bottom: 20px;
}

.content li {
    margin-bottom: 8px;
}

/* MCP Reference Specific Styles */
body.mcp-page {
    background: var(--white);
}

body.mcp-page .container {
    max-width: 1000px;
}

.mcp-page .header {
    text-align: center;
    margin-bottom: 60px;
}

.logo {
    margin-bottom: 20px;
}

.logo img {
    height: 68px;
    width: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.subtitle {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 32px;
    line-height: 1.5;
}

.intro {
    background: var(--gray-light);
    border-left: 4px solid var(--orange);
    padding: 24px;
    margin-bottom: 40px;
    border-radius: 8px;
}

.intro p {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.intro p:last-child {
    margin-bottom: 0;
}

.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--black);
    border-bottom: 2px solid var(--orange);
    padding-bottom: 12px;
}

.tool-card {
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tool-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 12px;
    font-family: 'Courier New', monospace;
}

.tool-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
}

.tool-description {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tool-params {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
}

.tool-params h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
}

.param-item {
    margin-bottom: 12px;
    padding-left: 16px;
    border-left: 3px solid var(--orange);
}

.param-name {
    font-weight: 600;
    color: var(--black);
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.param-type {
    color: var(--text-secondary);
    font-size: 14px;
    font-style: italic;
}

.param-description {
    color: var(--text-primary);
    font-size: 14px;
    margin-top: 4px;
    line-height: 1.5;
}

.ui-badge {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 12px;
}

.mcp-page .back-link {
    color: var(--blue);
    font-size: 16px;
    margin-bottom: 32px;
}

.mcp-page .back-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.quickstart {
    background: var(--gray-light);
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 40px;
}

.quickstart h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--black);
}

.quickstart-step {
    margin-bottom: 24px;
}

.quickstart-step:last-child {
    margin-bottom: 0;
}

.quickstart-step h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 12px;
}

.quickstart-step p {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.code-block {
    background: var(--black);
    color: var(--gray-light);
    padding: 16px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    overflow-x: auto;
    margin: 12px 0;
    line-height: 1.5;
}

.code-block code {
    color: var(--gray-light);
}

.mcp-url {
    background: #e8f4f8;
    border-left: 4px solid var(--blue);
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
}

.mcp-url a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.mcp-url a:hover {
    text-decoration: underline;
}

/* Homepage Footer */
body.homepage footer {
    margin-top: 80px;
    color: rgba(255, 255, 255, 0.8);
}

body.homepage footer a {
    color: rgba(255, 255, 255, 0.8);
}

body.homepage footer a:hover {
    color: var(--white);
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
    
    .description {
        font-size: 18px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .content {
        padding: 30px 20px;
    }
    
    .subtitle {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .diagonal-bg {
        left: 0;
    }
    
    h1 {
        font-size: 32px;
    }
    
    .content {
        padding: 20px 15px;
    }
}
