@import url('./main.css');

.page-container {
    min-height: 100vh;
    padding-top: 80px;
}

.page-hero {
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.commands-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.command-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.command-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.command-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.command-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.command-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.policy-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
}

.policy-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.policy-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.policy-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-content a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-content a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.detail-page-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem;
    align-items: flex-start;
}

.sidebar {
    position: sticky;
    top: 100px;
    width: 280px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-primary);
    transform: translateX(5px);
}

.detail-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
}

.detail-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.detail-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.detail-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.detail-content ul,
.detail-content ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.detail-content li {
    margin-bottom: 0.75rem;
}

.command-example {
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.command-example code {
    color: #a5b4fc;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1.1rem;
}

.command-badge {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .detail-page-container {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        top: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-hero-title {
        font-size: 2rem;
    }

    .page-hero-subtitle {
        font-size: 1rem;
    }

    .commands-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .policy-content {
        padding: 2rem 1.5rem;
    }

    .policy-content h2 {
        font-size: 2rem;
    }

    .policy-content h3 {
        font-size: 1.3rem;
    }

    .detail-content {
        padding: 2rem 1.5rem;
    }

    .detail-content h2 {
        font-size: 2rem;
    }

    .detail-content h3 {
        font-size: 1.5rem;
    }
}
